は、これは動作しません、私ののfunctions.php(私はPHPのエラーを取得していない、とも現れて何も)の一部ではありません:Wordpressの:カスタマイザが表示されない、エラー
function calmar_studio_customizer_register ($wp_customize) {
$wp_customize -> add_section('calmar_studio_colors', array (
'title' => __('Colors', 'calmar_studio'),
'description' => 'Modify the theme colors',
));
$wp_customize -> add_setting('background_color', array (
'default' => '#fff',
));
$wp_customize -> add_control(new WP_Customize_Color_Control($wp_customize, 'background_color', array(
'label' => __('Edit Background Color', 'calmar_studio'),
'section' => 'calmar_studio_colors',
'settings' => 'background_color',
)));
}
add_action('cutomize_register', 'calmar_studio_customize_register');
コールバックは 'calmar_studio_customize_register'ですが、あなたが持っている関数は 'calmar_studio_customizer_register'です。同じものにするには –
@ jnhghy-JanteaAlexandruありがとうございます。しかし、それは悲しいことに何も解決しませんでした。どのように私はPHPエラーと何も得ない?それはとても奇妙です。エラーがあれば、私は驚くべきことがあります。 何か間違いがありますか? – frizzant