Site logo

Archived topic

custom customizer

5 replies · Started by Basello on April 11, 2020

Viewing posts 1–6 of 6

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,

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.

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...

It is working!! thank you very much!

You're welcome :)

This archived topic is closed to new replies.