• Resolved redkite

    (@redkite)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    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/

    Thread Starter redkite

    (@redkite)

    Hmm – actually that doesn’t do anything. They are still there.

    Plugin Author Rui Guerreiro

    (@takanakui)

    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 );
    Plugin Author Rui Guerreiro

    (@takanakui)

    add it to a child theme functions.php so it won’t be lost with any theme update

    Thread Starter redkite

    (@redkite)

    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.

    Plugin Author Rui Guerreiro

    (@takanakui)

    @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]

    Plugin Author Rui Guerreiro

    (@takanakui)

    Will close the topic for now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove widgets’ is closed to new replies.