Home › Forums › Themes Support › Gecko › grey background behind each product image
- This topic has 6 replies, 2 voices, and was last updated 6 years, 3 months ago by Harry.
-
AuthorPosts
-
-
January 27, 2018 at 3:45 pm #16529
how can I get a background behind each product image like you have in Gecko demo organic store?
I tried this CSS, but didnt work:
.woocommerce #main {
background-color: #d6d8d7;
background-image: none;
} -
January 27, 2018 at 6:33 pm #16536
Hi Adam,
Please add below code
.p-item.woocommerce-product-gallery__image { background-color: #d6d8d7; }
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
January 27, 2018 at 10:53 pm #16541
Hi Harry,
unfortunally it doesnt work.
-
January 27, 2018 at 11:20 pm #16543
Hi Adam,
With this product layout you should have about 3 product images and over. If your product have only one image we recommend use layout 1 or layout 3
and please try this css
.single-product-thumbnail.woocommerce-product-gallery { background-color: #d6d8d7; }
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
January 28, 2018 at 2:14 am #16544
also tried this css code but still no change.
-
January 28, 2018 at 2:31 am #16546
I just realized where the background gets grey: its on the details page of the product.
We need this in the product listing which is showed on main page and on shop main page as well
-
January 28, 2018 at 3:41 pm #16549
Hi Adam,
If you want add background color for product images, your images also are .png file and use below code
.products .product-image,
.single-product-thumbnail.woocommerce-product-gallery {
background-color: #d6d8d7;
}or you have to manual add grey background by photoshop
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.