Home › Forums › Automattic › Forefront › Grid image and post image
-
AuthorPosts
-
bniwalpolechapterMemberI’d really like to have separate images for the grid view and the post itself but doesn’t seem possible. If it isn’t, is there some way I can just not display the featured image on the post?
The blog I need help with is bniwalpolechapter.wordpress.com
Thanks.August 21, 2013 at 12:09 am #138673
MichelleHi there,
You’re correct, it’s not possible to have separate images for the grid and post views. You can hide featured images on the single page itself using CSS. Here’s the process you’d follow.
In your browser, go to the page where you want to hide the CSS. Right click on the page. In the menu that pops up, select “View Page Source”. Look for the “body” tag (it’ll look like this):
<body class="page page-id-30 page-child parent-pageid-3 page-template-default logged-in admin-bar no-customize-support custom-background mp6 debug-bar-maximized theme-menu-maximized highlander-enabled highlander-light">
The above is the “body” tag from the source of this page: http://bniwalpolechapter.wordpress.com/members/cora-corrigan/
Next, notice the “page-id-30” in the tag. That is the unique ID of this page, and it’s what we’ll use in our CSS to tell the browser we want to hide featured images on this page.
Once you have the page ID, go to your CSS Editor and paste the following code:
.page-id-30 .hero {
display: none;
}That will hide the featured image at the top of only this page. After hiding the featured image, you might notice a lot of extra space between the site header and content area. You can reduce this space (if you want) with the following:
.page-id-30 .content-area,
.page-id-30 .sidebar-widget-area {
margin-top: 30px;
}You would need to repeat this process for every page that you want to hide the featured image. Let me know if you have any questions or run into any issues!
August 21, 2013 at 9:06 am #138707
bniwalpolechapterMemberThanks for the detailed reply. I’ve got too many sub-pages so I’ll use a different theme.
Please consider allowing different images in a future version. It would be a useful enhancement.
August 22, 2013 at 6:03 pm #138779
Caroline MooreHowdy! Thank you for the feedback, we will keep this in mind. Do you need additional assistance, or are you all set?
September 4, 2013 at 7:18 pm #139539
Kathryn P.Happiness EngineerI’m going to close this thread now but feel free to start a new one if you need anything else.
-
AuthorPosts
The topic ‘Grid image and post image’ is closed to new replies.