• Resolved agauberti

    (@agauberti)


    How can I delete and remove the redundant widget areas from “Widgets”, on the WP backend of https://crefovi.com please?

    What is the method to remove these widget areas?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    Thanks for reaching out.

    I understand that you would like to remove the widget areas that are coming from the Storefront theme.

    You can add the following code in your child theme functions.php file to remove the default widget areas:

    add_action( 'widgets_init', 'storefront_unregister_a_widget_area', 999 );
    function storefront_unregister_a_widget_area() {
    
        unregister_sidebar( 'sidebar-1' ); // Remove sidebar widget area
    	unregister_sidebar( 'header-1' ); // Remove header widget area
    	// Remove footer widget areas
    	unregister_sidebar( 'footer-1' );
    	unregister_sidebar( 'footer-2' );
    	unregister_sidebar( 'footer-3' );
    	unregister_sidebar( 'footer-4' );
    }

    I hope it helps!

    Best,

    Hi there @agauberti,

    Hope you managed to remove the extra widget areas! We haven’t heard back from you for a while, so I’m going to mark this post as resolved.

    If you need any further help here, please let us know. Or, if you need additional help with the Storefront theme, please start a new thread and we’ll be able to help you out there.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing redundant widget areas’ is closed to new replies.