- March 10, 2016 at 10:18 pm #26375
JoaoMemberMember since: February 21, 2016
- Topics: 1
- Replies: 1
- Total: 2
Any way to disable the featured image on the post, but allow it on the background on a post?March 11, 2016 at 6:12 am #26412
Forum ModeratorMemberMember since: August 16, 2013
- Topics: 0
- Replies: 15948
- Total: 15948
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.
DaveMay 8, 2016 at 1:33 pm #32968
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?May 9, 2016 at 7:34 am #33014
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.
ShriMay 9, 2016 at 9:04 am #33045
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.May 9, 2016 at 9:28 am #33048
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.
ShriMay 9, 2016 at 1:11 pm #33081
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.May 9, 2016 at 1:13 pm #33085
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.
ShriMay 9, 2016 at 1:17 pm #33086
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.May 9, 2016 at 1:23 pm #33092
The topic ‘Disable featured image on post.’ is closed to new replies.