-
-
Hello:
I’ve set up my WooCommerce shop with products, but the images are not all cropping to the same size. I see the setting sizes for product display in the WC settings, and they appear fine. Why are some images not cropping to square? I would like them to all crop square
Also is there a way to remove pagination here?
All other functions appear normal.
Thanks!
-
Hello,
Can i please see a link of your products page?
Best regards!
-
-
Hello,
Please go to Woocommerce > Settings > Product > Display, and make sure to have checked the “Hard Crop” option (screenshot). Then upload images once again or run a plugin to recreate thumbnails.
Let us know.Best regards!
- This reply was modified 7 years, 1 month ago by Mirela.
-
Have checked “Hard Crop” and regenerated thumbnails, which solved most size issues, but not all. Still have some photos that are not square. Other solution?
Also, is it possible to remove pagination on Shop page as I did in portfolio? I have installed the filtering widgets, but prefer all images to show without pagination feature.
Thanks for your help!
- This reply was modified 7 years, 1 month ago by davefoxartist-theme.
-
Hello,
Please go to file woocommerce/content-product.php and fins this line:
if ( 0 === ( $woocommerce_loop['loop'] ) % $woocommerce_loop['columns'] || 1 === $woocommerce_loop['columns'] ) { $classes[] = 'first'; }
Replace with this:
if ( 0 === ( $woocommerce_loop['loop'] ) % $woocommerce_loop['columns'] || 1 === $woocommerce_loop['columns'] ) { $classes[] = 'first'; $woocommerce_loop['loop']++; }
To remove the pagination you need to change the default number of products that are being displayed in a page. Set the number to a great value in order to display all products and this way the pagination will not be shown.
Go to file functions-woocommerce.php and find this line:
add_filter('loop_shop_per_page', create_function('$cols', 'return 12;'), 20);
Edit to this:
add_filter('loop_shop_per_page', create_function('$cols', 'return 9999;'), 20);
Let us know.
Best regards!
-
You must be logged in to reply to this topic.