[Resolved] Featured image size in posts

Home Forums Support Featured image size in posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #334975
    Dale

    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.)

    GeneratePress 1.3.48
    GP Premium 1.3
    #334995
    Leo
    Staff
    Customer Support

    Hi there,

    Try this:

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

    For centering:

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

    Thanks!

    #335141
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.