Removing featured images in Twenty Fifteen theme from sing posts, archive….
-
I love the new ‘Twenty Fifteen’ theme.. but when I try to remove the featured image from single post pages and the main blog page… the CSS I am using shifts the title up without padding at the top of the blog post
.post-thumbnail img { display: none; }This is a post with featured image added to the post and the above CSS used…
And here is a screenshot of a post when I don’t add the featured image…
https://ryanphotographyblog.wordpress.com/wp-admin/post.php?post=6156&action=edit
Could someone help me with the CSS code to remove featured images from archive, blog and single post pages please… where I get the same spacing as if I didn’t use a featured image in my post…
The blog I need help with is: (visible only to logged in users)
-
Hi there, it sounds like you are not wanting featured images to show on any post, is that true? If so, I would suggest removing the featured images from the posts. If we go with a CSS solution, then that is going to be an all or nothing thing. In other words, it is going to hide featured images from ALL posts. If you wanted to use a featured image on a post in the future, then you would have to undo the hiding, which would bring them back on all posts.
The following removes the featured images from all posts.
.post.has-post-thumbnail .post-thumbnail { display: none; } .post.has-post-thumbnail { padding-top: 8.3333%; } -
-
-
Is there a way to remove a featured image only from single post, but not the homepage?
thanks…..
-
@jhyatt, I worked this out off of the demo site. Give it a try to delete the featured post from single post pages. It specifically targets single post pages. I added a bit of padding to the top of the title so it isn’t so close to the top of the white container.
.single .post-thumbnail { display: none; } .single .entry-title { padding-top: 30px; } -
Is there a way to hide the featured image from all portfolio pages? I don’t like images to be repeated in a portfolio. I just want to hide the featured image from portfolio pages. I still want the featured image to appear at the home page level. This is for the Twenty Fifteen theme.
-
-
-
-
-
-
@ahmansini1
Please post only into one thread for any issue. Already answered here https://en.forums.wordpress.com/topic/need-help-with-customizing-my-template-header-and-modules?replies=3#post-2250256
- The topic ‘Removing featured images in Twenty Fifteen theme from sing posts, archive….’ is closed to new replies.
