ResolvedPost featured image resize or hide
Tagged: featured image, sale product
- This topic has 2 replies, 2 voices, and was last updated 3 years, 7 months ago by
kraftart.
- AuthorPosts
- April 18, 2020 at 11:59 pm #22379
kraftart
ParticipantHi, I would like to resize or even hide the post featured image, because I don’t like the way they look now.
Also I would like to know is I can do something about the ~sale products~ display. That white rectangle looks awful (ex: https://kraftart.ro/reduceri/ )
April 22, 2020 at 6:45 pm #22481Althemist
KeymasterHello kraftart,
Sorry for the late reply.
1. I guess you’re talking about the featured image on the post single page. If so, the only way to remove it would be with some custom CSS. Something like this:
.post-unit-holder img.attachment-zass-blog-category-thumb.wp-post-image { display: none; }
2. The problem with the “white rectangle” is that you’re using 4 columns of products + a sidebar, so there is no enough space to display the sale countdown. Thee are two options:
a) Disable the countdown on sale products under Theme Options > Shop
b) Hide it on product listings with CSS. Something like this:.has-sidebar .woocommerce.columns-4 div.prod_hold .count_holder_small, .woocommerce.columns-5 div.prod_hold .count_holder_small, .woocommerce.columns-6 div.prod_hold .count_holder_small { display: none; }
Note that this code would only hide it for 4,5 and 6 columns layouts but keeps it visible on 2 and 3 column layouts. Alternatively you can completely hide the countdown on product listings only show it on single product pages with the following CSS:
.count_holder_small { display: none !important; }
Hope this helps.
regards,
DimitarApril 22, 2020 at 11:08 pm #22484kraftart
ParticipantThank you, I’ll try it and come with a feedback
- AuthorPosts
You must be logged in and have valid license to reply to this topic.