BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › cropped images
Tagged: image, single product
- This topic has 9 replies, 4 contibutors, and was last updated 8 years, 7 months ago by Anonymous.
Question
March 24, 2016 at 7:43 pm #65100@omarobaidHi there,
How can I display the full image on a single product page rather than crop it?
At the moment if the image is wide, it crops the sides. And if the image is tall, it crops the top and bottom.
I want it so that it shows the full image regardless of the site or orientation.
Thanks,
OAnswers
March 26, 2016 at 3:09 am #65397@
AnonymousHi @omarobaid, The WooCommerce plugin crops images for the product pages and category pages you will need to change those dimensions in the WooCommerce settings.
There is a Tutorial here on what to do..
Hope that helps.
Regards
March 27, 2016 at 9:24 am #65537@omarobaidThank you for this, but I have done this already and regenerated the images but it doesn’t seem to take any effect.
Please could you look into this?
March 28, 2016 at 1:46 pm #65709@
AnonymousHi @omarobaid
Please take a look of this thread, it might help you.
https://www.buddyboss.com/support-forums/topic/adjust-product-image-sizes-on-shop-and-individual-product-pages/#post-64656Regards
Varun DubeyMarch 29, 2016 at 6:16 am #65784@omarobaidI tried that before I ask you and it didn’t work!
March 29, 2016 at 1:28 pm #65887@
AnonymousHi @omarobaid
You can try with following
by default it will soft crop, if we add true attribute it will hard crop the image.add_action('init', 'remove_plugin_image_sizes'); function remove_plugin_image_sizes() { remove_image_size('bm-product-archive'); add_image_size( 'bm-product-archive', 200, 300 ); }
If it will not work, you will need to modify template file for single product and archive template and replace the product image size call with full.
Regards
Varun DubeyMarch 29, 2016 at 3:01 pm #65919@omarobaidThis worked but for the shop archive page.
I want to fix the image on the single product page only.
Could you please help? We are almost there!
March 30, 2016 at 6:13 pm #66151@omarobaidYou can close this. I have managed to fix it!
March 31, 2016 at 7:13 pm #66382@smackmathewOmar, can you explain how you fixed it? id like to do the same thing.
March 31, 2016 at 11:29 pm #66399@
AnonymousHi @smackmathew
You can use following use soft crop apprach for product singleadd_action('init', 'remove_woosingle_image_sizes'); function remove_woosingle_image_sizes() { remove_image_size('bm-shop_single'); add_image_size( 'bm-shop_single', 547, 607); }
Regards
Varun Dubey
- The question ‘cropped images’ is closed to new replies.