ablaze1570047688 Posted October 28, 2014 Posted October 28, 2014 I want to use the built-in Blog Header Content block for a blog-specific header when viewing the full blog feed, but I don’t want it to show up when viewing an individual post. Does anybody know how to hide it on posts only?
jstead1570047952 Posted April 4, 2015 Posted April 4, 2015 still looking for an answer to this as well...ridiculous
Carlos Anon Posted April 17, 2015 Posted April 17, 2015 I would also like to know this. No one out there know this to help us out?
Carlos Anon Posted April 17, 2015 Posted April 17, 2015 I found this code works in a way. <style> #page-body-header {display:none} </style> If you insert it on your blog page header code injection it will remove the header block. Unfortunately it removes it for both the index and posts.I'm not sure how to get it to only work in posts and leave the index alone.
Carlos Anon Posted April 17, 2015 Posted April 17, 2015 Hazaar! I just worked it out. In your blog post right at the top (might work anywhere but this is where it worked for me) add a code block. Leave the display source setting as HTML and make sure it is unchecked. then clear the default message and enter the following code: <style> #page-body-header {display:none} </style> Then save the block and voila! Your blog page header content block will disappear from the blog post.
ablaze1570047688 Posted April 17, 2015 Author Posted April 17, 2015 I haven’t tested this yet, but it’s good to know there’s a workaround out there. However, this isn’t a workable solution for me. For one thing, remembering to put this block into every post is just definitely not gonna happen. More importantly, though, I don’t want to be loading my posts with styles that might mess things up if I ever leave Squarespace. I want my blog posts to be totally valid and future-proof.
e2astudio Posted April 17, 2015 Posted April 17, 2015 You can hide the Page Body Header on the item view globally, across all blogs with this simple code snippet added to the Custom CSS Editor: .view-item #page-body-header { display: none; }
e2astudio Posted April 17, 2015 Posted April 17, 2015 @Carlos Anon and @ablaze rather than use a code block like this on every post (yuk) just use the code in my answer instead. It'll save you a lot of trouble.
ablaze1570047688 Posted April 17, 2015 Author Posted April 17, 2015 Yes! You did it! Bravo! It seems to cause some strangeness in the way the header is displayed in edit mode for the blog feed, but it looks a-ok on the live version.
Guest Posted April 3, 2016 Posted April 3, 2016 Nothing like waking up in the morning knowing an issue needs to be solved and finding a clear working solution in two minutes. Thank you, eanderson!
overhauldesigns Posted February 15, 2019 Posted February 15, 2019 Thank you so much!! It's 2019 and your answer is still helping!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.