Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Image hyperlink in annoucement bar?


heytom88

Question

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

3 answers to this question

Recommended Posts

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

 

Greeting, it's BaNgan from 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, Youtube Gallery for Squarespace
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
  • 0

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

Greeting, it's BaNgan from 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, Youtube Gallery for Squarespace
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...