Jump to content

Issue with background image in header not displaying in Brine Template

Recommended Posts

Site URL: https://npcc.squarespace.com

I've been helping a client using a Brine Template to add in a background image in the header, which has worked fine for a few months.

However something strange happened. The client got in touch to say that the image was no longer displaying. When I log in and go to the Custom CSS section the code is there and the image appears in the live view on the right. When I go back to the Home space and refresh, the image disappears?

.Header-inner--top {
    background-image: url(https://npcc.squarespace.com/s/concrete-background4-wider.jpg); 
}

That's the code I was given when I asked for help in this Forum. I've attached screenshots to show the issue.

Screenshot 2021-06-11 at 17.50.03.png

Screenshot 2021-06-11 at 17.49.44.png

Link to comment
  • Replies 5
  • Views 293
  • Created
  • Last Reply

Top Posters In This Topic

On 6/12/2021 at 8:32 AM, tuanphan said:

Do you use Trial Plan?

Try testing code on Paid Plan.

 

The client site is live and the image works on a desktop. On a mobile, it only shows when the phone is in landscape view but not in portrait view?

I'm assuming that code is needed to resolve this?

Link to comment
18 hours ago, jasonconway said:

The client site is live and the image works on a desktop. On a mobile, it only shows when the phone is in landscape view but not in portrait view?

I'm assuming that code is needed to resolve this?

Mobile header needs another class name. Use this new code

.Header-inner--top, .Mobile-bar.Mobile-bar--top {
    background-image: url(https://npcc.squarespace.com/s/concrete-background4-wider.jpg)
}

 

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.