Jump to content

Open code injection link in new tab

Recommended Posts

Site URL: https://cornet-asparagus-m6a4.squarespace.com/new-page

Hi all,


I have added a code block into my website which I would like to allow the user to click on a title (Job Description) and the link take the user to a new tab. This is the code I have, hoping someone can help me alter to allow new tab to be opened when clicked.


<script src='https://www.workable.com/assets/embed.js' type='text/javascript'></script>
<script type='text/javascript' charset='utf-8'>
whr_embed(562726, {detail: 'titles', base: 'jobs', zoom: 'country', grouping: 'none'});
<div id="whr_embed_hook"></div>


Thanks for your help.

Link to comment
1 hour ago, Localmotionuk said:

Thanks for this, unfortunately it still opens in the same tab?

Try this new code

$(document).ready(function() {
  setTimeout( function() {
	$('h3.whr-title a').attr('target','_blank');
     }, 3000);


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

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.