Home / Forums / WoodMart support forum / Set the height of the image
Home › Forums › WoodMart support forum › Set the height of the image
Set the height of the image
- This topic has 11 replies, 2 voices, and was last updated 4 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
February 10, 2026 at 8:04 pm #708079
ha21cnParticipanthttps://ibb.co/KpgNMn69
I’d like to know how to set the height of this element so that the image automatically adjusts to the width?The default settings for this component don’t accurately reflect the image’s pixel ratio.
February 11, 2026 at 12:18 pm #708158Hello,
Edit your Image / SVG widget in WPBakery.
In the Image Size field, either:
Choose a standard size like full or large or enter only the width, 400px — leaving the height blank ensures it auto-adjusts according to the image’s ratio.
See Screenshot for better understanding: https://postimg.cc/0MKPkNmw
Best Regards,
February 25, 2026 at 5:19 am #709811
ha21cnParticipanthttps://ibb.co/fVxyxLPt
I’ve set the class and the image size, but I want the Product Categories component to not display text on mobile devices. How can I do this?February 25, 2026 at 1:33 pm #709871Hello,
Can you please share some screenshots of the text which you want to hide on mobile along with the page URL where it is situated, so I can further check and give you a possible solution?
Best Regards,
February 26, 2026 at 2:29 pm #710032
ha21cnParticipantWhat I want to achieve is to retain the text on the computer but hide the product category names on the mobile device.
I set the Extra class name to categoryyimg1 for Product Archive in the Layout.February 26, 2026 at 2:43 pm #710035Hello,
Can you share the page URL so I can further check on your site and give you a possible CSS code.
Best Regards,
February 26, 2026 at 2:52 pm #710042
ha21cnParticipantI’m so sorry, I forgot to send you the website link. Do you need the administrator login link?
February 26, 2026 at 3:37 pm #710047Hello,
Try to add the following custom css code in Theme Settings > Custom CSS > Custom CSS for mobile.
.wd-cat-content.hover-mask { display: none; }Best Regards,
February 26, 2026 at 7:37 pm #710080
ha21cnParticipantThis CSS code affects the display of the entire website, I want CSS code that can be set separately.
February 27, 2026 at 12:09 pm #710158Hello,
Try to add the following custom css code in Theme Settings > Custom CSS > Custom CSS for mobile.
.term-premier-league .wd-cat-content.hover-mask { display: none !important; }This will hide the category text only on the Premier League category page and affect mobile devices only.
Best Regards,
March 3, 2026 at 2:04 am #710592
ha21cnParticipantHowever, my product category page is set up using a layout. Is it possible to set the code within the layout so that I don’t need to set custom CSS for each product category?
March 3, 2026 at 12:40 pm #710648Hello,
Since you are using a Layout for the product category page and added the extra class categoryyimg1, you can target that specific layout instead of adding CSS for each category separately.
Please add this CSS in Theme Settings > Custom CSS > Custom CSS for mobile:
.categoryyimg1 .wd-cat-content.hover-mask { display: none !important; }Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register