• Resolved echapp

    (@echapp)


    Hi,

    I’d like to remove the “You are previewing bloginfo(‘name’)” section/panel in customizer…

    Looks like this section/panel it’s not like the others that you can remove using $wp_customize->remove_section(‘$id’), there’s no reference of it in class-wp-customize-manager.php

    Does Anybody know a way to remove that section/panel from customizer?

    tks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    “You are customizing…”?

    Add this to a custom admin CSS:

    #customize-info {
      display: none;
    }

    More info in Creating Admin Themes

    Thread Starter echapp

    (@echapp)

    Hi bcworkz, thank you for replying

    I solved this issue with:

    function remove_customize_info(){
        wp_enqueue_script( 'my_script', get_stylesheet_directory_uri() . '/js/script.js' );
    }
    add_action( 'customize_controls_print_scripts', 'remove_customize_info' );
    jQuery( document ).ready(function() {
        jQuery( "#customize-info" ).remove();
    });
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove section "You are previewing …"from customizer’ is closed to new replies.