Jump to content

Changing link of contact symbol (social icon) in navigation

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('header#header a[href*="mailto"]').attr('href','https://google.com');
  $('header#header a[href*="mailto"]').attr('target','_self');
});
</script>

 

Edited by tuanphan

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
16 hours ago, tuanphan said:

Add to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('header#header a[href*="mailto"]').attr('href','https://google.com');
});
</script>

 

Great. Thank you so much!

Can you please add the code snippet to redirect it on the same page and not to open the link in a new tab?

Thanks again.

Best, Sibylle

Link to comment
13 hours ago, orneverornow said:

Great. Thank you so much!

Can you please add the code snippet to redirect it on the same page and not to open the link in a new tab?

Thanks again.

Best, Sibylle

Updated above code. You can check it again.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.