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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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.