Archived topic
Woocommerce addon
5 replies · Started by Joe on May 19, 2017
Hi,
I noticed a Woocommerce addon at the bottom of the list that I may have missed. Since I am setting up Woocommerce, I activated it. Is there any documentation? If you could point me to it or describe the main functions of the Woocommerce add on, I would appreciate it very much. Thank you.
Joe
Hi Joe,
The WC add-on was released yesterday - still working on documentation (will be up soon).
For now, you'll find the options in:
Colors > WooCommerce
Typography > WooCommerce
Layout > WooCommerce
Most of them are fairly obvious once you enabled/disable the options.
Let me know if you need more info :)
Hi Tom,
The Woocommerce add on give a lot of fine control.
Working with it, I naturally had to get into blog settings and i have a question about that. I have the blog set up for collumn - content - collumn and keep the Woocommerce product pages at content-collumn. When I run a search, my results come out in the collumn - content - collumn format. I would like the results to come out in content - collumn format. Is there any way to set that?
Joe
Hi there,
Regular searches, or product specific searches?
By default, the search template will inherit your blog sidebar layout.
You can adjust it with a filter: https://docs.generatepress.com/article/sidebar-layout/#using-a-function
Hi Tom,
I want to eliminate the left sidebar on regular and product searches. It is showing up on both.
Will this work?
add_filter( 'generate_sidebar_layout','tu_custom_search_sidebar_layout' ); function tu_custom_search_sidebar_layout( $layout ) { // If we are viewing search results, set the sidebar if ( is_search() ) return 'no-left-sidebar'; // Or else, set the regular layout return $layout; }
Can i use Simple CSS to insert the filter or do I need to use another plugin to modify a php file?
Joe
This should do it:
add_filter( 'generate_sidebar_layout','tu_custom_search_sidebar_layout' );
function tu_custom_search_sidebar_layout( $layout )
{
// If we are viewing search results, set the sidebar
if ( is_search() )
return 'no-sidebar';
// Or else, set the regular layout
return $layout;
}
Adding PHP: https://docs.generatepress.com/article/adding-php/