External WordPress Images size

Roland P. asked 8 years ago

Hi

I had contact with you with Hullo.

I use External Images but at my shoppage the sizes of the images are different. I want the title, prices etc of the products under the image on the same line.

The image are different too of landscape or portrait. You tell me that you test it on my site and have the solution.Can you tell me how I can change it?

Thanks you very much!

Greetz Roland

1 Answers
Dave Hilditch Staff answered 8 years ago

Using external images means you don’t get ‘cropped images’ – not the normal WordPress way anyway (using timthumb.php).
But that doesn’t mean you can’t simulate the same thing and get all your images to be the same height. Normally, your WooCommerce theme would include CSS to handle this, but if it doesn’t and you have images which are varying in height, to return them all to the same height use CSS like this:
.woocommerce ul.products li.product a img {
width: auto;
height: 200px;
display: block;
margin-left: auto;
margin-right: auto;
}
If your theme doesn’t let you add CSS, install the Simple Custom CSS plugin and add the CSS there.
https://wordpress.org/plugins/simple-custom-css/

Your Answer


Super Speedy Plugins
Logo