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

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

By Doug Neary, 9 years ago. Last reply by Daniel, 9 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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Magus
    Hi, I Work Here

    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. 9 years, 5 months ago Daniel
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More