Home › Forums › WoodMart support forum › Image colored background—AJAX Products Tabs
Image colored background—AJAX Products Tabs
- This topic has 8 replies, 2 voices, and was last updated 1 year, 11 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
March 9, 2023 at 4:54 pm #449736
bartenderondutyParticipantHi Xtemos Team,
We are working with the AJAX Products Tabs element and are using product images with transparent backgrounds. Please see screenshot—image on the left has a background as part of the image; image on the right has a transparent background. We would like to add color background to just the image container of the AJAX Products Tabs element so that the image on the right looks like what you see on the left when we use images with transparencies.
Can you suggest a way to accomplish this?
Attachments:
You must be logged in to view attached files.March 9, 2023 at 11:30 pm #449850
bartenderondutyParticipantAlso, how do we add spacing between the products?
Attachments:
You must be logged in to view attached files.March 10, 2023 at 1:00 pm #450012
Aizaz Imtiaz AwanKeymasterHi,
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: red; } .product-grid-item .product-element-top{ background: red; }
Result: https://jmp.sh/1IteKxU
Remember that the images must have a transparent background like .png images. Otherwise the background color can’t be seen. Also I just used “red” color just to set an example for you, you can use any other color of your choice.
02. Go to theme setting> Product Archive> Product Grid: Here you can set the spacing between the products: https://ibb.co/5TjFPd8
Best Regards.
March 10, 2023 at 4:38 pm #450095
bartenderondutyParticipantHi Xtemos Team,
For 1, the CCS works perfectly—thank you!
For 2, the setting you indicated under Theme Settings > Product Archive > Product Grid works great for the grid items on the Shop/Archive page. However, it doesn’t appear to affect the AJAX Product grid, which is what we’re trying to adjust.
Can you please provide a solution to 2 for adding spacing in the AJAX Product grid?
March 11, 2023 at 11:08 am #450220
Aizaz Imtiaz AwanKeymasterHello,
Actually, to add space between the Products for the AJAX Product Tabs element > you need to edit the respective element > go to Style tab > under that open the Products layout > in that you can find the option of Space between to define Space between Products: https://snipboard.io/vDiRdF.jpg
Best Regards.
March 11, 2023 at 10:05 pm #450325
bartenderondutyParticipantThank you for the response!
I’m referring to the space between the containers (where the arrow is pointing in the screenshot). This setting seems to only affect the padding.
Do you have a possible solution for this?
Attachments:
You must be logged in to view attached files.March 13, 2023 at 1:08 pm #450681
Aizaz Imtiaz AwanKeymasterHello,
Sorry to say but your Site WP-ADMIN Logins aren’t working now.
Further, as you can see in the following Image from our Test Site: https://snipboard.io/j8yIlr.jpg
We have used the same AJAX Products Tabs element there > with Space between defined > the space is generated between Products accordingly as selected through option which we mentioned you earlier.
So, this option for this Element is for adding space between Products.
Best Regards.
March 13, 2023 at 8:49 pm #450827
bartenderondutyParticipantApologies, we had to restore the site from a backup which removed new user account we had set up. We went ahead and used the Products grid instead and it works great.
Thank you!
March 14, 2023 at 9:28 am #450930
Aizaz Imtiaz AwanKeymasterMost Welcome!!!.
We are glad that you managed to do the workaround yourself. You are great 👍
Feel free to contact us, if you need any further assistance. We are always there for your help.
Thanks for contacting us.
Have a great day.Topic Closed.
Best Regards. -
AuthorPosts
The topic ‘Image colored background—AJAX Products Tabs’ is closed to new replies.
- You must be logged in to create new topics. Login / Register