Jump to content

Open all site links in same tab - Squarespace 7.1

Recommended Posts

  • Replies 4
  • Views 1.7k
  • Created
  • Last Reply

Please post the URL to your site.

If your site is not public please set up a site-wide password, if you've not already done so. Post the password here.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

When you make a hyperlink including click thru urls  and add the url do not choose open in new window and it will not create a new tab. New window new tab, same window same tab. Note below what makes the link open in a new tab. 

  1. Click the gear icon in the URL field.
  2. Click Web Address in the link editor.
  3. Enter a site URL under Link.
  4. Switch the Open in New Window toggle on to have the link open in a new tab.
  5. Click Save, then click Apply or Save.
Link to comment

You can also try adding this to Home > Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('a').attr('target','_self');
});
</script>

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (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.