Jump to content

Background image in header for blog posts?

Recommended Posts

Also need the same for my site.  I need to be able to display the site brand consistently across pages, especially the blog pages.  The more i work with squarespace the less and less impressed i am by you it.

This would seem like a fairly straightforward requirement in any site, yet an unusual lack of foresight.

Link to comment

Hi,

  you can add this code to Design > Custom CSS. However the title won't over image

body.collection-type-blog-side-by-side.view-item header#header {
    background-image: url(https://images.squarespace-cdn.com/content/v1/609bf83cffa8e36b5272df1d/72ca889f-75e1-4f04-99c5-933aa7990ec3/homeillustration.jpg?format=1500w);
    padding-bottom: 20px;
}

You can adjust 20px

image.thumb.png.1287fb7b67a22d5ffad258f4a7a7dc9a.png

You can consider use this blog post banner plugin, looks better. It will be like this (we can make header transparent + over image with some simple code later).

(The link contains an affiliate link, which means I will get a small comission if you click on the link and buy the plugin. Of course, it's definitely a good plugin, from a dev I know, so I recommend it.)

Style 1-min.jpg
 

Let me know if you have any other problems.

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 10/8/2021 at 10:26 PM, JHebert said:

This is very helpful, thanks. I don't understand why I can't change the "theme" colors for just the blog headers. Your image code works great, but the navigation colors are all screwed up now.

You want to change navigation items color on blog posts? or ?

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 years later...
10 hours ago, jmerrill said:

@tuanphan I'm looking to add a single header image to all blog post pages - similar to the screenshot above with orange image. Could I get some CSS code to achieve that for blog pages.

URL: uplifting.me

Can you share built-in domain? It looks like you havent' finished connecting domain with SS site yet

image.thumb.png.de4705e8a81752a84abaa54ea5f100ba.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 12/10/2023 at 7:02 AM, jmerrill said:

@tuanphan I'm looking to add a single header image to all blog post pages - similar to the screenshot above with orange image. Could I get some CSS code to achieve that for blog pages.

URL: uplifting.me

Use this CSS code, it will apply to all blog post detail (with list page, will need to change view-item to view-list

[class*="type-blog"].view-item header#header {
    background-image: url(https://cdn.pixabay.com/photo/2023/11/11/19/58/whisky-8381774_1280.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.