Site logo

Archived topic

Featured image size in posts

3 replies · Started by dale on June 17, 2017

Viewing posts 1–4 of 4

I was using this css to set a maximum width for featured images that appear at the top of posts, but it doesn't seem to be working anymore:

.wp-post-image {
max-width: 400px;
display: block !important;
}

Thoughts?

(The "block" element is unrelated to the size and is there for centering the featured images.)

Hi there,

Try this:

.page-header-image-single img {
    max-width: 500px;
}

For centering:

.page-header-image-single {
    text-align: center;
}

Thanks!

No problem!

This archived topic is closed to new replies.