Site logo

Archived topic

Using SVG in WP-Show Posts

3 replies · Started by Oisin on October 5, 2020

Viewing posts 1–4 of 4

Hi there,

When using png images as featured images they look terrible when pulled in by WP-Show Posts so I'm using SVG images instead. However, I've run into a second issue because now the rows all look off/not in line.

I can't set image height in WP Show Posts or the SVG images disappear. Is there anyway to set a container size for the WP Show Post images?

Or maybe some other work around?

Many thanks,

Oisín.

Hi there,

You could try setting a width and height property to the image like this:

.wp-show-posts-image img {
    width: 300px;
    height: 300px;
}

Thanks Leo!

No problem :)

This archived topic is closed to new replies.