Woocommerce & Wootique, Remove Sidebar From Product Pages?
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.
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.
I know nothing of commerce extensions, so this may not help, but hey, it might!
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.
Thank you bcworkz. I’ll check into Firebug and give this a shot.
How can i remove shopping cart from my Wootique menu.
I wait soonest reply. I am very need the reply.
@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.
- The topic ‘Woocommerce & Wootique, Remove Sidebar From Product Pages?’ is closed to new replies.