Hide featured image on page
-
AuthorPosts
-
stephaniemichelle8989
MemberHi there,
I would like to hide the featured image voor all pages and some blog posts.
It’s for my website: https://experiter.nl
I’ve read the topics about hiding it, the css codes mentioned in those topics don’t seem to work.
Could you please help me?The blog I need help with is: (visible only to logged in users)
ricardpriet
Theme AuthorHi there,
thank you for using our theme :)Yes, for pages you can simply remove the featured images you have added or add this CSS:
body.page .silvio-single-bg-image { min-height: auto; background-image: none !important; } body.page .silvio-single-bg-image > .container { position: relative; bottom: 0; padding-top: 30px; padding-bottom: 30px; }
For blog post the same, but you need to know the post id first. Here you are how to get it:
https://en.support.wordpress.com/pages/#how-to-find-the-page-idThen change the post id of the post you want to hide the featured image in this CSS:
body.postid-427 .silvio-single-bg-image { min-height: auto; background-image: none !important; } body.postid-427 .silvio-single-bg-image > .container { position: relative; bottom: 0; padding-top: 30px; padding-bottom: 30px; }
where “427” is the id of your post.
Hope this helps :)
Ricardo P. from SiloCreativoThank you for your answer.
I entered the CSS code but it shows a black beam.
For example: https://experiter.nl/vliegtickets/Is it possible to remove the beam and place the video under the menu bar?
(all the pages will have the same lay-out)ricardpriet
Theme AuthorYes of course,
add this CSS:
body.page .silvio-single-bg { display: none; } body.page .entry-content { padding-top: 0; }
Thank you,
Ricardo P.It worked! Thank you :-)
ricardpriet
Theme AuthorNice!
you are welcome :)
- The topic ‘Hide featured image on page’ is closed to new replies.