Jump to content

Cannot get CSS snippet to load my logo image in my header

Recommended Posts

Site URL: https://www.moose-tangerine-ybng.squarespace.com

Greetings,  I cannot get my logo to work onto my top header. Here is my code below.

 

header-title-logo a {
    background-image: url(https://app-stockbucketsio-s3.nyc3.digitaloceanspaces.com/django-static/logos/sb.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
	width: 200%;
    height: 200%;
}
.header-title-text {
display: none !important;
}

Am I doing something wrong? I have removed the title text that gets in the way, but for some reason my image wont load? Thank you for the help!

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

@tuanphan, thanks for your reply. I am inserting the CSS in Design > Custom CSS.   I just added the script tags as you say:

 

<script>
header-title-logo a {
    background-image: url(https://app-stockbucketsio-s3.nyc3.digitaloceanspaces.com/django-static/logos/sb.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
	width: 200%;
    height: 200%;
}
.header-title-text {
display: none !important;
}
</script>

My image still doesn't seem to appear. 

Link to comment
On 1/10/2021 at 11:07 PM, andresjassawda said:

@tuanphan, thanks for your reply. I am inserting the CSS in Design > Custom CSS.   I just added the script tags as you say:

 


<script>
header-title-logo a {
    background-image: url(https://app-stockbucketsio-s3.nyc3.digitaloceanspaces.com/django-static/logos/sb.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
	width: 200%;
    height: 200%;
}
.header-title-text {
display: none !important;
}
</script>

My image still doesn't seem to appear. 

Replace it with <style> and </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
On 1/18/2021 at 6:42 AM, andresjassawda said:

I still seem to get the same error. 

Can you post all code here (post code, no screenshot, difficult to check with screenshot)? We can check easier

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.