WordPress.org

Forums

Sampression Lite
[resolved] [closed] Disable featured image on post (6 posts)

  1. hanjuju
    Member
    Posted 1 year ago #

    Great template. Is it possible, though, to disable the featured image from appearing on the post? In some cases, I want the featured image to appear on the home page, but not on the post itself.

  2. bo4610
    Member
    Posted 1 year ago #

    I am with you here this theme is awesome but the featured post image is just ugly

  3. bo4610
    Member
    Posted 1 year ago #

    Step 1 >> Go to your Appearance> Editor

    Step 2 >> Go to Style Sheet (style.css)

    Step 3 >> Do a CTRL + F and paste “body.single article.post .featured-img”. The original code is:

    body.single article.post .featured-img {
    height:auto;
    margin:0;
    }

    Step 4 >> Simply add “width: 0px;” right after the “height:auto;” which should look like this:

    body.single article.post .featured-img {
    height:auto;
    width: 0px;
    margin:0;
    }

    Step 5 >> Hit “Update File” and viola! You now have the Sampression Lite looking awesome.

  4. hanjuju
    Member
    Posted 1 year ago #

    That worked -- thanks!

  5. hugomax
    Member
    Posted 1 year ago #

    Only one snag.....Now on my mobile version there seems to be a gap where the featured image should be. So a lot of white space before the post.

    Has anyone else noticed this and if so is there a easy fix for getting rid of this unwanted space?

    Regards

  6. Rgk
    Member
    Posted 1 year ago #

    I have indeed noticed it. Instead of width:0; as per bo4610's instructions, try display:none;

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic