Storefront number of columns on shop pages
-
HI
I have disabled my sidebar for entire site as client requires a Catalogue mode only and no sidebar.
Now I can only see 3 columns across the screen and I need to show 4 or 5 columns of products .
As default for Storefront seems to be 3, I have tried several bits of coding to make it show 4 or 5 columns or products but no luck .. still showing 3
I usually use this in functions but not working.
/*adjustment for 4 shop columns*/
add_filter( ‘storefront_loop_columns’, function() { return 4; } ); //change shop colunns//I have also got this coding in CSS
.site-main ul.products li.product {
width: 17% !important;
float: left;
margin-right: 5.8823529412%;
margin-left:0;
}It reduces the columns for the products no issues, but still showing only 3 columns.
This is frustrating trying to find the correct coding.Why does Storefront have default of 3 only ? There would be many other shops who require more than 3 so I would have assumed there were options for this .
Also under the STorefront/Themes/Appearance/Woocommerce I already have the setting in there for 4 columns also.
Any help would be appreciated
Very frustrating !Thanks
Kristin
- The topic ‘Storefront number of columns on shop pages’ is closed to new replies.