Jump to content

Open all site links in same tab - Squarespace 7.1

Recommended Posts

Hello, 

Is it possible to have all my site's hyperlinks open in same tab in Squarespace 7.1?

 

Currently, links, including source URL links in posts, open a new tab. I prefer all links to never open a new tab.

Thank you so much for your help!

Edited by Joseph21
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.
Edited by derricksrandomviews
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

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.