LitWorld Posted December 13, 2021 Share Posted December 13, 2021 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
Beyondspace Posted December 16, 2021 Share Posted December 16, 2021 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
Beyondspace Posted December 16, 2021 Share Posted December 16, 2021 My testing result 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment