Home>Support>How do I remove the sidebar menu in Vantage?

How do I remove the sidebar menu in Vantage?

By Ralph Prado, 10 years ago. Last reply by daveydotnet, 8 years ago.

How do I remove the sidebar menu in Vantage without effecting the top header menu?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 5 months ago Ian Rossiter

    Hi Ralph

    To remove the sidebar on any page, change the page layout to full width.

    If you are using Vantage as a blog theme with all blog posts displaying on your homepage, Navigate to Appearance > Widgets. Under the Sidebar section remove all the widgets.

    Non of the above should have any effect on your header menu.

  2. 10 years, 3 months ago gtd91

    Hi Ralph,

    I seem to be having a problem removing the sidebar too,

    I have selected ‘Full width’ template, however the sidebar doesn’t seem to change at all.

    I am currently making a test site so you can see the problem here: barbell.printvinyl.co.uk

    the shop page is set to full-width (all widgets deleted) but as you can see it isnt full width at all

    Is the full width not usable with woocommerce ?

  3. 10 years, 3 months ago Andrew Misplon
    Hi, I Work Here

    Hi gtd

    It’s a WooCommerce related challenge, please insert the following under Appearance > Custom CSS to force a 100% width WooCommerce container.

    Thanks

    /* WooCommerce 100% width container */
    
    .woocommerce-page #container {
    width: 100% !important; 
    }
  4. 8 years, 4 months ago Massey

    Hi there,

    I used the code posted above to try and remove the sidebar in woocommerce product pages and the shop page. I thought it worked until I scrolled down. The sidebar is at the bottom, looking a little unprofessional. How do I actually remove it?

    Background info:
    The site is set to Full Width
    The /Shop/ page is set to Full Width Page
    I have the Visual Attributes Woocommerce plugin that changes the dropdown menu options into images.
    I don’t know what your site rules are for mature content sites, so I hesitate to post my URL. It’s in my profile however.

    Can you help?

  5. 8 years, 15 days ago daveydotnet

    Hi,
    I have been having this problem too (i.e the page becoming full width, but the sidebar moving to the bottom) on the shop and checkout pages.
    Amalgamating ideas and code from here and the following sources
    https://masterblogster.com/how-to-hide-sidebar-on-particular-page-in-wordpress/
    https://codex.wordpress.org/Function_Reference/unregister_sidebar
    http://wordpress.stackexchange.com/questions/21418/why-isnt-is-page-working-when-i-put-it-in-the-functions-php-file/219846#219846

    I have implemented the following code in my vantage-child functions.php
    add_action(‘get_header’, function() {
    if (is_shop()) {
    unregister_sidebar(‘sidebar-1’); // primary on left
    unregister_sidebar(‘sidebar-2’); // secondary on right
    echo ‘

    ‘; //IS NOT EFFECTIVE AT THIS POINT
    } elseif (is_checkout()) {
    //no action required here
    }
    });

    and have implemented the following in my vantage-child style.css

    #container {width: 100% !important;} /* removes sidebar on shop page */
    /*#primary.content-area exists on both CHECKOUT and WELCOME therefore get page-id from Chrome webdeveloper tools*/
    .page-id-13 #primary.content-area { width: 100% !important;}

    I think the main points are the use of unregister_sidebar()
    and also that this was not required for the checkout page, I only needed to change the template to Full Width Page in the dashboard and add the qualified page-id in the stylesheet.

    This is my first post, please advise if I have not followed the correct etiquette.

    David

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More