• Resolved pk0312

    (@pk0312)


    I have created a page which I want to be the base page. Right now it is selected as Frontpage, and Shop Base page is empty (WooCommerce – Settings – Products – Display – Shop Page) and it works fine:

    https://i.stack.imgur.com/nPu9S.jpg

    But, as soon as I set this page to be Shop Base too, I get unwanted header and sidebar:

    https://i.stack.imgur.com/o3LjY.jpg

    It seems that it is automatically classified as a category page whne set as Shop Base. How do I remove this unwanted elements and still set this page to be Shop Page (and look like on 1st image)?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ad to theme function.php:

    function remove_storefront_sidebar() {
        if ( is_shop()) {
        remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 );
    	remove_action('woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10);
        remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10);
        }
    }
    add_action( 'get_header', 'remove_storefront_sidebar' );
    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    ^ That would work on Storefront theme, you’re using flatsome.

    This is something your theme is doing, so removing sidebar/header will be theme specific.

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    Hi @pk0312,

    We haven’t heard back from you in a while, so I’ll mark this thread as resolved now. If you have some more questions, feel free to start a new one.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting Shop Base Page adds unwanted sidebar and header’ is closed to new replies.