Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialanuj nIrmal
Courses Plus Student 33 PointsHow to remove Sidebar ??
How to remove sidebar of woocommerce theme Its showing unwanted links and looking useless
1 Answer
Jonathan Grieve
Treehouse Moderator 91,253 PointsHi Anuj,
A quick Google search takes me to tyhis...
You may be able to remove it by using a remove_filter.
remove_action( 'woo_main_after', 'woocommerce_get_sidebar', 10);
Or going into single-product.php and removing the following code.
<?php
/**
* woocommerce_sidebar hook
*
* @hooked woocommerce_get_sidebar - 10
*/
do_action('woocommerce_sidebar');
?>
Source. https://wordpress.org/support/topic/trying-to-remove-sidebar-from-all-woo-commerce-pages
The internet is your friend for working out problems such as these.. as well as of course your Treehouse Community. :)