Jump to content

Custom logo on each page

Recommended Posts

Hi,

Im trying to add a different header logo to one of my pages. When I use the code below the logo is showing as missing. Have tried uploading the logo a few times and updating the url but it doesn't work. Is there something wrong with the code?

<style>
.header-title-logo a {
content: 
url(“https://static1.squarespace.com/static/606b062dd5e36e1d63a63136/t/61e581243e95804ca710c1fc/1642430757176/2b.png”);
  }
</style>

Thanks 

Link to comment
  • Replies 7
  • Views 307
  • Created
  • Last Reply

Top Posters In This Topic

13 hours ago, brendanpeer said:

Hi,

Im trying to add a different header logo to one of my pages. When I use the code below the logo is showing as missing. Have tried uploading the logo a few times and updating the url but it doesn't work. Is there something wrong with the code?

<style>
.header-title-logo a {
content: 
url(“https://static1.squarespace.com/static/606b062dd5e36e1d63a63136/t/61e581243e95804ca710c1fc/1642430757176/2b.png”);
  }
</style>

Thanks 

Can you share your site with the protected password so we can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
13 hours ago, brendanpeer said:

Hi,

Im trying to add a different header logo to one of my pages. When I use the code below the logo is showing as missing. Have tried uploading the logo a few times and updating the url but it doesn't work. Is there something wrong with the code?

<style>
.header-title-logo a {
content: 
url(“https://static1.squarespace.com/static/606b062dd5e36e1d63a63136/t/61e581243e95804ca710c1fc/1642430757176/2b.png”);
  }
</style>

Thanks 

Or try

.header-title-logo a img {
  visibility: hidden;
}

.header-title-logo a {
  background-image: url(https://static1.squarespace.com/static/606b062dd5e36e1d63a63136/t/61e581243e95804ca710c1fc/1642430757176/2b.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

Let me know how it works

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
23 hours ago, brendanpeer said:

Hi,

Here the password to the site www.heydaysworkshops.com

creative23

The page with the css is 'how it works'

Thanks 

Try adding to Design > Custom CSS

body#collection-60b39d6ce3183158961864e9 header#header img {
    content: url(https://static1.squarespace.com/static/606b062dd5e36e1d63a63136/t/61e581243e95804ca710c1fc/1642430757176/2b.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
3 hours ago, brendanpeer said:

Hi tuanphan

Yeah amazing that worked! can I ask what part of that code I would change (excluding the URL) if I wanted different logos on each page?

Thanks 

To apply code for others page >> First, edit that page >> Add a Code Block at bottom of page >> Use this code

<style>
  header#header img {
    content: url(https://static1.squarespace.com/static/606b062dd5e36e1d63a63136/t/61e581243e95804ca710c1fc/1642430757176/2b.png);
}
</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

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.