Disable featured image on post.

Home Forums All Other Themes Disable featured image on post.

This topic contains 9 replies, has 4 voices, and was last updated by  SKT Themes 2 years ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #26375

    Joao
    Member
    • Topics: 1
    • Replies: 1
    • Total: 2
    Member since: February 21, 2016

    Any way to disable the featured image on the post, but allow it on the background on a post?

    #26412

    Forum Moderator
    Member
    • Topics: 0
    • Replies: 16960
    • Total: 16960
    Member since: August 16, 2013

    Hi Joao,

    Kindly use this plugin: https://wordpress.org/plugins/hide-featured-image/

    After installing this plugin you will find the hide featured image option on the posts just below the “Set featured image” box.

    Regards,
    Dave

    #32968

    William Gibson
    Member
    • Topics: 0
    • Replies: 8
    • Total: 8
    Member since: October 21, 2015

    Installed your suggested plugin and it does nothing. The image is still showing on the posts. Is there a custom CSS code I could enter? Or maybe some code I could remove from somewhere to achieve the same outcome?

    #33014

    SKT Themes
    Keymaster
    • Topics: 2
    • Replies: 5964
    • Total: 5966
    Member since: June 12, 2013

    Hi,

    You can go to appearance>theme options>basic settings>there is a checkbox to disable featured image on the whole site to show as background image.

    So now only single background image will show via appearance>background on the whole site.

    Regards,
    Shri

    #33045

    William Gibson
    Member
    • Topics: 0
    • Replies: 8
    • Total: 8
    Member since: October 21, 2015

    Right…but that’s not what I’m trying to do. Please re-read the OP.
    I want to “…disable the featured image on the post, but allow it on the background on a post”.
    In other words I do not want the featured image to appear on single post pages. It can show on the “Blog” and as THAT post’s background…but I’d prefer it NOT show on posts itself.

    The forum moderator suggested, “”Kindly use this plugin: https://wordpress.org/plugins/hide-featured-image/” which doesn’t work and hasn’t been upgraded to work with wordpress 4.5.2…

    So, as I asked earlier, “Is there a custom CSS code I could enter? Or maybe some code I could remove from somewhere to achieve the same outcome?” I’m using Photo Sessions Pro.

    #33048

    SKT Themes
    Keymaster
    • Topics: 2
    • Replies: 5964
    • Total: 5966
    Member since: June 12, 2013

    There isn’t any selective coding or function in the theme to have separate background for posts or disabling it for posts and enabling it for the entire website.

    Regards,
    Shri

    #33081

    William Gibson
    Member
    • Topics: 0
    • Replies: 8
    • Total: 8
    Member since: October 21, 2015

    HA! I figured it out. In content-single.php, remove the following code:

    <div class="post-thumb">
    			<?php if (has_post_thumbnail() )
    				the_post_thumbnail();
    				?>
    		</div><br />
    		

    Removing that bit of code removes the featured image from each post, but still allows it to show in the background as well as on the blog page.

    #33085

    SKT Themes
    Keymaster
    • Topics: 2
    • Replies: 5964
    • Total: 5966
    Member since: June 12, 2013

    Well never knew you were good with coding otherwise would have suggested such a change in the first time.

    Normally don’t suggest code changes to users as they break website.

    Thanks for posting the answer too.

    Regards,
    Shri

    #33086

    William Gibson
    Member
    • Topics: 0
    • Replies: 8
    • Total: 8
    Member since: October 21, 2015

    Your welcome. I knew there was post-thumb code in there somewhere, I just had to find it. LOL
    I’m using a child-theme, so it was only a matter of copying over the content-single.php to the child theme folder and then edit it there. If it broke anything, I only needed to delete the copied file.

    #33092

    SKT Themes
    Keymaster
    • Topics: 2
    • Replies: 5964
    • Total: 5966
    Member since: June 12, 2013

    Cool.

    Regards,
    Shri

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Disable featured image on post.’ is closed to new replies.