Jump to content

Image hyperlink in annoucement bar?

Recommended Posts

Site URL: https://tangerine-krill-3gdl.squarespace.com/

 

https://tangerine-krill-3gdl.squarespace.com/

Password: hello123

hey all!

I've got an image in the announcement bar (see link, fixed at the bottom) and need the image to be clickable - it has an email address, which once clicked would open up the email client. So mailto: hello@ninawrightinteriors.com  how do I do this?

Using squarespace 7, on "Basil', using business plan

Thanks so much in advance!

Link to comment
  • Replies 3
  • Views 464
  • Created
  • Last Reply
On 11/30/2020 at 5:35 PM, heytom88 said:

Site URL: https://tangerine-krill-3gdl.squarespace.com/

 

https://tangerine-krill-3gdl.squarespace.com/

Password: hello123

hey all!

I've got an image in the announcement bar (see link, fixed at the bottom) and need the image to be clickable - it has an email address, which once clicked would open up the email client. So mailto: hello@ninawrightinteriors.com  how do I do this?

Using squarespace 7, on "Basil', using business plan

Thanks so much in advance!

Add this to Advanced->Code Injection->Header

<script>
  window.Squarespace.onInitialize(Y, function() {
     document.querySelector(".sqs-announcement-bar").onclick = function(e){
          window.location = "mailto: hello@ninawrightinteriors.com";
      }
});
</script>

 

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

Thank you so much for your reply @bangank36

Is it possible to have two links in the annoucement bar? I've got the logo+email address as a png (needs to be hyperlinked to the email) and then the phone number - again, ideally, linked, or at least can be copied and pasted? Is this possible?

 

Bonus points - how is it possible to align the text to the image? I need to lower the type, or move up the png?

 

Thank you!

 

https://tangerine-krill-3gdl.squarespace.com/

Password: hello123

 

 

Link to comment
5 hours ago, heytom88 said:

Thank you so much for your reply @bangank36

Is it possible to have two links in the annoucement bar? I've got the logo+email address as a png (needs to be hyperlinked to the email) and then the phone number - again, ideally, linked, or at least can be copied and pasted? Is this possible?

 

Bonus points - how is it possible to align the text to the image? I need to lower the type, or move up the png?

 

Thank you!

 

https://tangerine-krill-3gdl.squarespace.com/

Password: hello123

 

 

it would be time consuming, let's DM me for more detail

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

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.