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
  • Views 271
  • Created
  • Last Reply

@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

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

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.