This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Featured Image width=100% set in Vantage style.css

10 years ago · Last reply by Daniel 10 years ago

When I set a Featured Image for a post the image on post page display is being resized to 100% width due to the below line in [Vantage] style.css:
article.post .entry-header .entry-thumbnail img {
display: block;
width: 100%;
height: auto;
}
The original Featured Image size is
300px × 180px
but the displayed post image size, after resize, is
300px × 180px (scaled to 1,080px × 648px)

Is there something I should be doing when I set a Featured Image on a post?
fyi .. I am using a Featured Image because the WordPress Popular Post plugin doesn’t seem to work when I specify “use first image in post” but does work when I use Featured Image.

URL: http://ota-au.org/wopila-tanka-to-everyone-for-donating/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Magus Staff 10 years, 10 months ago

    Hi Doug

    Please try this in your custom CSS

    article.post .entry-header .entry-thumbnail a, article.page .entry-header .entry-thumbnail a {
        display: inline;
    }
    article.post .entry-header .entry-thumbnail img, article.page .entry-header .entry-thumbnail img {
        width: auto !important;
    }

    Hope this helps

    Magus

  2. Daniel Staff 10 years, 10 months ago

    Hi Doug

    @Magus has guided you on how to make the changes

    The custom CSS section is located via Appearance > Custom CSS, you’ll get our custom CSS editor. Just add the code provided

    Let us know if it works out for you

    Cheers

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread