I’m no ninja but try this.
I use this free add-on :WooCommerce Product Sort and Display
And this organizes category page beautifully.
And it’s always helpful if you include link to your own shop page that’s having an issue.
I wouldnt do it even if you could (and you can).
Think about your mobile and tablet customers that dont have 22 inch monitors.
Thread Starter
Tufail
(@tufailshahzad)
@tweakben thank you for your reply. First of all let me clear that it’s not going to be a public store/website. It’s for internal usage that’s why not thinking about Mobile/Tablet devices because every user will be using their computer for purchases/orders.
That’s why I want to display 5 or 6 products per row.
Thread Starter
Tufail
(@tufailshahzad)
@bulewold, thank you for your response. Can you give me it’s URL?
Thread Starter
Tufail
(@tufailshahzad)
@bulewold, than you for your quick reply. But, it’s not going to solve my problem. Because the Plugin owner actually hiding the basic feature so people can purchase their Pro version to take benefit. Don’t you have any other solution?
Hi @tufail, you can put below code in your theme functions.php:
// Change number or products per row to 5 for category page, 6 for shop page
if(is_product_category())
add_filter('loop_shop_columns', 'custom_loop_category_columns');
else
add_filter('loop_shop_columns', 'custom_loop_shop_columns');
if (!function_exists('custom_loop_category_columns')) {
function custom_loop_category_columns() {
return 6; // 6 products per row for category page
}
}
if (!function_exists('custom_loop_shop_columns')) {
function custom_loop_shop_columns() {
return 5; // 5 products per row for shop page
}
}
Hope it helps.
Thread Starter
Tufail
(@tufailshahzad)
Thank you @terrytsang, I saw your older posts and it was helpful for other people and I did the same yesterday but it was not helpful for me. Can you please help me, where to put this code in my theme? If you can take a minute and reply a brief reply I will be thankful to you 🙂
In your current theme, edit a file ‘functions.php’ using any file editor, put above code at the end of the file. Save the file and see happen to your shop and category page.
Or else, you can try below free plugin:
WooCommerce Product Archive Customiser
Thread Starter
Tufail
(@tufailshahzad)
@terrytsang, I did the same but nothing change on “Shop” and “Category” page(s).
More info (I think I must share it with you):
I’m using:
Avada Theme, Version: 3.4.3
WooCommerce Version: 2.1.10
If you want to checkout my site, I can create a user for you, I know you can help me.
Thread Starter
Tufail
(@tufailshahzad)
I hired a developer and he solved my problem. Thank you all for your participation.