Home › Forums › WoodMart support forum › Changing color of image background
Changing color of image background
- This topic has 11 replies, 2 voices, and was last updated 5 years, 3 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
November 16, 2019 at 3:08 am #157172
bidnbuyParticipantI’m trying to control the background color of the images. Please refer to the attachment.
Thanks.
Attachments:
You must be logged in to view attached files.November 16, 2019 at 10:18 am #157206
Aizaz Imtiaz AwanKeymasterHello,
To change the background color of product grid items. You can use the below CSS code in your global custom CSS area under theme settings:
.product-grid-item .hover-img img{ background: grey; } .product-grid-item .product-element-top{ background: grey; }
Result: https://jmp.sh/1IteKxU
Remember that the images must have transparent background like .png images. Otherwise the background color can’t be seen. Also I just used “grey” color just to set an example for you, you can use any other color of your choice.
Best Regards.
November 16, 2019 at 10:16 pm #157297
bidnbuyParticipant…thank you.
Using transparent .png works quite fine on the product grid pages
– https://bidnbuy.auction/product-category/electronics/headphones/However, the solution is less effective when zooming on the single-product page. How exactly does the zoom feature work- is there a way to hide the underlying image when displaying the larger view?
– https://bidnbuy.auction/bnb-product/active-wireless-noise-cancelling-bluetooth-headphones-with-microphone-over-ear/Thanks.
November 18, 2019 at 6:59 am #157431
Aizaz Imtiaz AwanKeymasterMost Welcome,
That zoom feature is a part of WooCommerce functionality. If you do not want that zoom feature inside single product page then you can select any other option for “Main image click action” from Theme settings >> Product Page >> IMAGES.
Also If you just want to change the background color of images in the single product page. You can try the below CSS code in theme settings >> custom CSS >> global custom CSS:
.image-action-zoom .owl-carousel .product-image-wrap { background: grey; }
Best Regards.
November 18, 2019 at 3:15 pm #157603
bidnbuyParticipant… the zooming feature provides a lot if usefulness to the user experience, however, the functionality could be improved. We’ll have to take it as is for now and work around any limitations internally.
Regards.
November 19, 2019 at 5:55 am #157677
Aizaz Imtiaz AwanKeymasterHello,
Yes, the zoom in functionality might be improved.
But to improve the zoom in feature requires customization which is out of our scope.Best Regards.
November 19, 2019 at 4:00 pm #157842
bidnbuyParticipantHello,
Can you provide the info below to include into the general setting of the WP Image Zoom plugin which we are testing.
—
Owl Carousel container class: (If the images are in a Owl Carousel gallery, then type in here the class of the div containing the Owl Carousel gallery)Thanks.
November 20, 2019 at 6:53 am #157904
Aizaz Imtiaz AwanKeymasterHello,
You can get the info to include the WP Image Zoom plugin from the plugin URL:
https://wordpress.org/plugins/wp-image-zoooom/Do you want to know the class name of that div which contains the products in carousel?
Best Regards.
November 20, 2019 at 4:23 pm #158053
bidnbuyParticipant…that’s correct, I would like to know the class name of that div which contains the products in carousel.
Regards
November 21, 2019 at 6:40 am #158114
Aizaz Imtiaz AwanKeymasterHello,
The name of the class which contains the products in carousel is “woodmart-carousel-container”.
Screenshot for clarification: https://jmp.sh/NoWqfu5
Best Regards.
November 21, 2019 at 5:04 pm #158279
bidnbuyParticipantThanks.
November 22, 2019 at 5:17 am #158312
Aizaz Imtiaz AwanKeymasterMost Welcome!!!..
Well, bidnbuy!.., it’s been great chatting with you! I hope I resolved your issues thoroughly.
Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards. -
AuthorPosts
The topic ‘Changing color of image background’ is closed to new replies.
- You must be logged in to create new topics. Login / Register