Jump to content

Hyperlinking Alternate Logo in Header (Bedford)

Recommended Posts

Site URL: https://www.litworld.org

Hi all,

Would anyone be able to help me figure out how to hyperlink an alternate logo (coded through header injection on certain pages) to the homepage? The logo on our site (Beford, 7.0) wasn't visible when using the transparent header, but we really liked how it looked so we inserted this code into pages using the transparent header so that we could replace the default logo with one that would be visible:

<style>
#logoImage {
content: url("https://static1.squarespace.com/static/524608b4e4b0781833bcf0b5/t/61b3c14209abe57223c36e18/1639170371065/bethestorywithlogo_white.png");}
  </style>

However, when clicking the alternate logo on pages with this code, the logo won't redirect back to the homepage. If anyone knows how to hyperlink an image in the header, that would be really appreciated. Thanks!

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

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 12/14/2021 at 1:01 AM, LitWorld said:

Site URL: https://www.litworld.org

Hi all,

Would anyone be able to help me figure out how to hyperlink an alternate logo (coded through header injection on certain pages) to the homepage? The logo on our site (Beford, 7.0) wasn't visible when using the transparent header, but we really liked how it looked so we inserted this code into pages using the transparent header so that we could replace the default logo with one that would be visible:

<style>
#logoImage {
content: url("https://static1.squarespace.com/static/524608b4e4b0781833bcf0b5/t/61b3c14209abe57223c36e18/1639170371065/bethestorywithlogo_white.png");}
  </style>

However, when clicking the alternate logo on pages with this code, the logo won't redirect back to the homepage. If anyone knows how to hyperlink an image in the header, that would be really appreciated. Thanks!

Kindly remove the above style setting and try the following one in Home > Design > Custom Css

#logoImage a {
  position: relative;
}

#logoImage a:after{
  content:''; 
  background-image: url('https://static1.squarespace.com/static/524608b4e4b0781833bcf0b5/t/61b3c14209abe57223c36e18/1639170371065/bethestorywithlogo_white.png');
  background-size: cover;
  position: absolute;
  width: 100%;
  height: 100%;
  left:50%;
  top:50%;
  display: block;
  transform: translate(-50%,-50%)
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🚀 Learn how to rank new pages on Google in 48 hours!

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

My testing result

image.thumb.png.48a1797f89555a3addbe13b5309e8eb8.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🚀 Learn how to rank new pages on Google in 48 hours!

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

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.