Jump to content

Add a block of colour to a blog post header

Recommended Posts

Hey guys, how would I go about adding a solid block of colour to a blog post header, roughly 25vh, with the title sat in the middle?

Attached is a pic of how I'd like it to look.

Usually for this, I'd use Will Myers' blog post header plugin, but this colour needs to be on all blog posts whilst being able to have a separate thumbnail image.

Site: https://echidna-trout-5mcr.squarespace.com/mission-blog/blog-post-title-one-rgamz password = pass

Screenshot 2023-11-14 at 09.03.22.png

Sam Crawford | by Crawford.
 
Multi-award-winning Squarespace expert
 
💸 Speedrun your first $100k as a Squarespace designer: sixfiguredesign.club
📱 Hire me to build your Squarespace website: calendly.com/bycrawford/call
 
Did my comment help? To help others benefit, leave a like and mark my answer as 'best'. This lets users scroll straight to the solution they need.
Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

If you use Will's plugin and set the overlay to a solid colour and 25vh it should look like your mockup. It of course would be best not to load the image at the top, but I'm sure that would be possible for loading time.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

You can also add this code to Last Line in Code Injection > Footer

<script>
  $(document).ready(function(){
    $('<h1 class="custom-blog-heading">Mission Blog</h1>').insertBefore('div.blog-item-wrapper.blog-basic-grid-item-wrapper');
});
</script>
<style>
  h1.custom-blog-heading {
    text-align: center;
    background-color: #bbccc4;
    height: 25vh;
    margin: 0 !important;
}
[class*="type-blog"].view-item header#header {
    background-color: #bbccc4 !important;
  }</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.