简体   繁体   中英

Wordpress: Customizer not showing, no error

This is the part of my functions.php that doesn't work (I get no PHP ERROR, and also nothing showing up):

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');

While not exactly solving the issue, I grabbed the Sample from https://gist.github.com/Abban/2968549 and copied it into my functions.php file. Works perfectly. Now I have to make tweaks, and get the items to Display on the page.

This could be the plugin conflict issue. Please deactivate plugins and try.

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM