How to remove widgets
-
Your plugin works wonderfully, but how do I remove the new widget areas that have been added to the Widgets page? These will only confuse my client.
-
Hi @redkite,
Check this article that explains how it’s possible to remove the widgetized areas.
https://www.wpmobilemenu.com/knowledgebase/tips-tricks/remove-the-widgetized-areas/Hmm – actually that doesn’t do anything. They are still there.
it can be because of the single quotes format on WP Mobile Menu site.
Try to copy the code below.function remove_wp_mobile_menu_widgets(){ // Unregister the Mobile Menu Widgetized Areas. unregister_sidebar( 'mobmlefttop' ); unregister_sidebar( 'mobmleftbottom' ); unregister_sidebar( 'mobmrighttop' ); unregister_sidebar( 'mobmrightbottom' ); } add_action( 'widgets_init', 'remove_wp_mobile_menu_widgets', 11 );add it to a child theme functions.php so it won’t be lost with any theme update
I missed the single quotes in the add_action line before, but they’ve been replaced now. And this is in functions.php, this is a Genesis custom theme. I also tried adding the unregister_sidebar lines to existing code to remove other sidebars, but they are still there for some reason.
@redkite that’s strange.
I just didn’t understand if you tried the code I provided.If you tried, need to ask something in private. Can you email me to contact [support AT wpmobilemenu DOT com]
Will close the topic for now.
The topic ‘How to remove widgets’ is closed to new replies.