2016-12-22 11 views
0

は、これは動作しません、私のの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'); 
+0

コールバックは 'calmar_studio_customize_register'ですが、あなたが持っている関数は 'calmar_studio_customizer_register'です。同じものにするには –

+0

@ jnhghy-JanteaAlexandruありがとうございます。しかし、それは悲しいことに何も解決しませんでした。どのように私はPHPエラーと何も得ない?それはとても奇妙です。エラーがあれば、私は驚くべきことがあります。 何か間違いがありますか? – frizzant

答えて

0

ますがありません問題を正確に解決するために、私はhttps://gist.github.com/Abban/2968549からサンプルを取得し、それを私のfunctions.phpファイルにコピーしました。完璧に動作します。今私は微妙な調整をし、アイテムをページに表示する必要があります。

0

これはプラグインの競合の問題である可能性があります。プラグインを無効にしてからお試しください。

ありがとうございました。

関連する問題