<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Changing woocommerce shop image sizes &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 14 Oct 2025 12:58:47 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-343625</guid>
					<title><![CDATA[Changing woocommerce shop image sizes]]></title>
					<link>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-343625</link>
					<pubDate>Wed, 29 Jul 2015 03:18:00 +0000</pubDate>
					<dc:creator>patrobles</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,<br />
I have read through this thread <a href="https://community.theme.co//forums/topic/woocommerce-product-image-settings/" rel="nofollow">https://community.theme.co//forums/topic/woocommerce-product-image-settings/</a> and found this code, which help me set the size of all my image containers in my woocommerce shop.</p>
<pre><code>.entry-product .entry-featured {
  height: 200px;
}</code></pre>
<p>Problem is some images are bigger or smaller than the container and they&#8217;re not being adjusted accordingly. Having all images be uploaded in the same size is not a viable solution to my client, so what I want to do is resize them in such a way so that they dont loose their width:height ratio. I tried adding the following CSS, which should theoretically work (I have made it work on simple html created divs)</p>
<pre><code>#top .entry-product .entry-featured img{
  width: 100%;
	max-height:100%;
}</code></pre>
<p>I checked with dev tools and the code is being implemented, however the images are not being resized. The only explanation I can think of is that, while the images are being told to be resized, they&#8217;re not recognizing the size of their container.</p>
<p>How could I make it so all the .entry-product and .entry-featured containers remain 200px tall (already done this) and have images being rescaled insided this container without loosing their width:height ratios?</p>
<p>Here&#8217;s the link to my shop <a href="http://104.156.237.188/~mamachanguito/wp/tienda" rel="nofollow">http://104.156.237.188/~mamachanguito/wp/tienda</a></p>
<p>Thanks for all the help!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-343644</guid>
					<title><![CDATA[Reply To: Changing woocommerce shop image sizes]]></title>
					<link>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-343644</link>
					<pubDate>Wed, 29 Jul 2015 03:54:04 +0000</pubDate>
					<dc:creator>patrobles</dc:creator>

					<description>
						<![CDATA[
						<p>Got it to work. I&#8217;ll add the code I used in case someone is looking for a similar solution.</p>
<p>This was all placed in the style.css file of my child theme.</p>
<p>To set the size of the product container I use the following code. You can change 200px to whatever height you require. I tried playing with widths as well but it seemed better to do this with the # of columns setting in the costumizer.</p>
<pre><code>.entry-product .entry-featured {
  height: 200px;
position:relative;
}</code></pre>
<p>The position:relative; line was set so I could vertically center pictures that were smaller than the container.<br />
To then scale my images to the container size I used the following code. </p>
<pre><code>#top .entry-product .entry-featured a img{
  max-height:100%;
object-fit:contain;
position:absolute;
   top: 0;  
    bottom: 0;  
    left: 0;  
    right: 0;  
    margin: auto;  
}</code></pre>
<p>Only the first two lines are required to scale the content. The position:absolute; and following code was what I used to center (horizontally and vertically) all the images that weren&#8217;t being resized because they were smaller than my content.</p>
<p>I hope this can save someone else the headache it caused me!</p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-343722</guid>
					<title><![CDATA[Reply To: Changing woocommerce shop image sizes]]></title>
					<link>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-343722</link>
					<pubDate>Wed, 29 Jul 2015 06:02:52 +0000</pubDate>
					<dc:creator>Rupok</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Glad that you figured it out and thanks for sharing with the community. We really appreciate your effort.</p>
<p>Cheers! </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-381281</guid>
					<title><![CDATA[Reply To: Changing woocommerce shop image sizes]]></title>
					<link>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-381281</link>
					<pubDate>Mon, 07 Sep 2015 18:42:04 +0000</pubDate>
					<dc:creator>Nicolas Z</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Patrobles,</p>
<p>Thanks for this solution !</p>
<p>Have a nice evening,</p>
<p>Best regards.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-381284</guid>
					<title><![CDATA[Reply To: Changing woocommerce shop image sizes]]></title>
					<link>https://theme.co/archive/forums/topic/changing-woocommerce-shop-image-sizes/#post-381284</link>
					<pubDate>Mon, 07 Sep 2015 18:47:33 +0000</pubDate>
					<dc:creator>Nico</dc:creator>

					<description>
						<![CDATA[
						<p>Really glad it helped you.</p>
<p>Have a great day! 🙂</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

