Jump to content

Custom Css Code not working

Go to solution Solved by VisualNotes,

Recommended Posts

I add this custom code for adding a background image for header but its not working. can anybody help me to resolve the issue. 

 

.header .header-announcement-bar-wrapper {
    background-image: url(https://static1.squarespace.com/static/5e5d8db…/t/6438b10…/1681436993567/header+background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

Screenshot_3.png

Link to comment
  • Replies 2
  • Views 218
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

You have entered an incorrect URL:
url(https://static1.squarespace.com/static/5e5d8db…/t/6438b10…/1681436993567/header+background.jpg) won't work. 

Note the three dots in two places of the image URL in your CSS -  in their place should be digits that form the URL of the background image.

Copy & paste the correct URL of the image, and it should show up as background for the header.
 

image.thumb.png.d089ccf5591599bcc5eefb247bfcd6c9.png

Edited by VisualNotes
Link to comment
On 4/20/2023 at 1:30 PM, VisualNotes said:

You have entered an incorrect URL:
url(https://static1.squarespace.com/static/5e5d8db…/t/6438b10…/1681436993567/header+background.jpg) won't work. 

Note the three dots in two places of the image URL in your CSS -  in their place should be digits that form the URL of the background image.

Copy & paste the correct URL of the image, and it should show up as background for the header.
 

image.thumb.png.d089ccf5591599bcc5eefb247bfcd6c9.png

Thanks this solve the issue

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.