• Chuck

    (@dezastr)


    Hello everyone…

    Trying this post here. Not sure if this is the best place or not. Just looking for some help.

    I’m trying to get a site online for my wife. All is going well so far, but I’m having trouble with the sidebar. I’d like to keep it on the main page only, but remove it from all other pages. Even with very limited content so far, the site is: http://www.aprilsneattreats.com. I’ve been able to remove the sidebar from the “Cart”, “Checkout”, and “My Account” pages, but cannot find a way to remove it from the “Shop” or individual product pages, as well as the “Contact” page. At the present time, I’ve tried the following:

    1. Set all pages to the template (full width). This worked for the above mentioned “Cart”, “Checkout”, and “My Account” pages, but no others.

    2. Added the following code to “custom.css”. This set the pages to use the full width of the site, but the grey sidebar area still remains.
    .woocommerce #main{width:100%}

    3. Commented out the line below in “theme-woocommerce.php”. This removes sidebar content only.
    add_action( 'woo_main_after', 'woocommerce_get_sidebar', 10);

    These are the only things I’ve tried that I’ve had (some) success with. I’ve tried other solutions found in the forum, but none seem to work for me, unless I’m doing something wrong.

    I would really appreciate any assistance anyone can provide. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator bcworkz

    (@bcworkz)

    I know nothing of commerce extensions, so this may not help, but hey, it might!

    You may have been on to something with the CSS modifications, except you need to locate the sidebar div element and set it’s display property to none. You can use a CSS analyzer to easily locate the right element. Some browsers have analyzers built in, for Firefox, use the Firebug extension. This will possibly kill the sidebar for all pages though, so you may need to restore display with a javascript function that only runs on the main page.

    Another possibility that should work if the sidebar is displayed using the get_sidebar() function is to define you own zero width sidebar template named something like sidebar-chuck.php. Place it where the template loader can find it. Then hook the action ‘get_sidebar’ and return ‘chuck’ for the appropriate pages.

    Thread Starter Chuck

    (@dezastr)

    Thank you bcworkz. I’ll check into Firebug and give this a shot.

    Smyrna

    (@smyrna)

    How can i remove shopping cart from my Wootique menu.
    I wait soonest reply. I am very need the reply.
    Thanks.

    Moderator bcworkz

    (@bcworkz)

    @smyrna, I’m sorry I do not have an answer for you, I’m unfamiliar with woocommerce. Please start a new topic for your issue, it is the preferred practice in these forums and you will have a much better chance of getting a useful reply. More people are inclined to view threads with low and especially zero reply counts. Good luck finding an answer.

    Smyrna

    (@smyrna)

    @bcworkz Thank you very much

    You can install Dynamic Widgets plugin to remove sidebar from particular page

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Woocommerce & Wootique, Remove Sidebar From Product Pages?’ is closed to new replies.