The Ultimate SEO and Digital
Marketing Resource Network

Browse my content to stay ahead of the curve, drive business growth, and crush your SEO goals.

Table of Contents

How to set fixed height and width of woocommerce main image

How to set fixed height and width of woocommerce main image

If you want to set a fixed height of woocommerce main image then you have to use a custom css code to your theme. Different themes class could be different but here is the most common classes i have found.

I am using Astra theme and here is my code that you can try:

				
					.woocommerce div.images a img {
height: 600px! important;
object-fit: contain ;
object-position: top;
}
				
			

You can make changes on the code based on your needs. 

 

jubayer hossain

Author

Jubayer Hossain

I am jubayer hossain a professional and experienced web developer and SEO specialist. I am providing these services since 2017 on a multiple freelance marketplace like Fiverr and Upwork.

Build your perfect SEO campaign with Jubayer

jubayer hossain

Author

Jubayer Hossain

Did you like the post? Share it with:

Drive Your Revenue to New Heights

Unleash Your Brand Potential with My Award-Winning Services and Cutting-Edge Software. 

Get Started with a FREE Instant Site Audit.

Scroll to Top