[Resolved] custom customizer

Home Forums Support [Resolved] custom customizer

Home Forums Support custom customizer

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1235095
    Basello

    Hello,

    First, thank you for your theme!
    I am trying to hide certain elements of the customizer. Most of it I did (by editing the functions.php of a child theme). But I can’t do it for certain. I think these are the ones managed by the GP premium plugin:
    the “Off canvas panel” and “buttons” sections (in the layout and colors sections) as well as the “Widgets” section in Typography.
    Is there a solution to hide these sections?

    Thank you for your help,

    #1235469
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this:

    add_action( 'customize_register', function( $wp_customize ) {
        $wp_customize->remove_section( 'menu_plus_slideout_menu' );
        $wp_customize->remove_section( 'buttons_color_section' );
        $wp_customize->remove_section( 'font_widget_section' );
    }, 200 );

    Just a note that these IDs may change in the future. In that case, this function would need to be updated.

    #1236364
    Basello

    Hi,
    thank you for your answer.
    It worked for hidding the sections buttons and widgets.
    But not for the slideout menu (Off canvas panel).
    I also try to add : $wp_customize->remove_section( ‘menu_plus_sticky_menu’ );
    in order to hide “Sticky navigation”. But it didn’t worked either…

    #1236425
    Tom
    Lead Developer
    Lead Developer
    #1236497
    Basello

    It is working!! thank you very much!

    #1236656
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.