Archived topic
Columns in shop page
5 replies · Started by Anonymous on August 4, 2015
Dear Tom,
Please, how can I do the following:
1. Change the no of columns displayed in the woocommerce shop overview page?
Regards,
Stardrive
Do you want no columns displayed, or do you want sidebars on it?
You can use this function:
add_filter( 'generate_sidebar_layout','generate_custom_woocommerce_sidebar_layout' );
function generate_custom_woocommerce_sidebar_layout( $layout )
{
// If we are on a woocommerce page, set the sidebar
if ( is_woocommerce() )
return 'both-left';
// Or else, set the regular layout
return $layout;
}
These are the options:
Sidebar / Content: left-sidebar
Content / Sidebar: right-sidebar
Content (no sidebars): no-sidebar
Sidebar / Content / Sidebar: both-sidebars
Sidebar / Sidebar / Content: both-left
Content / Sidebar / Sidebar: both-right
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Let me know if you need more info :)
Dear Tom,
I was referring to the number of product thumbnail columns in a woocommerce product archive page. I did not mean the number of sidebars.
I am sorry for not communicating my request properly
Regards,
Stardrive
Ah, this may help then: http://docs.woothemes.com/document/change-number-of-products-per-row/
Thank you so much, Tom, for your kind and lighting reponse
I am OK with this now
Best Regards,
Stardrive
Glad I could help :)
