Removing Featured Image from blog.
-
hiya !
is there a code to remove featured images from both my main page and individual posts ?
i’d like to be able to select a specific image to be featured when, say sharing an article but that image won’t be visible on any page of my blog.
thanks !
marctheme- Kelly
The blog I need help with is: (visible only to logged in users)
-
“With custom header images, you can display your own photo on your blog’s page headers. Featured images allow for even greater customization, giving you the option to display unique custom header images for specific posts and pages or set thumbnails for special features of your theme.”
Setting a Featured Image link: https://en.support.wordpress.com/featured-images/
Hope that helps!
-
Hi Marc, if you are talking about sharing on FB or another social service, they will typically look for a featured image first and then if they can’t find that image, they will pick the first image within the post or page, that falls within their size criteria and use that image.
We can hide featured images from your visitors with CSS, but the code and image link is still in the HTML for the page or post, so the social media services can still find and use it when using a share button at the bottom of a post or a page.
This would be the code to hide the featured images from visitors to your site.
.entry-image { display: none; } -
thanks for your help marioashley but thesacredpath figured out what i probably didn’t explain correctly in my question as i was trying to keep it short.
thanks for the code, that’s exactly what i was looking for !
this is most helpful when sharing posts on social platforms that have several images in the original post. at least this way i get to chose the most relevant image and hopefully attract more attention to the page.
thanks again !
chers,
marc -
- The topic ‘Removing Featured Image from blog.’ is closed to new replies.