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

Instruct code to open in a new tab

Question

Site URL: https://www.cillianosiochain.com

Hello, I have added the following code to my site successfully, which creates a badge on my site which in turn is a link to an external webpage. Currently, the webpage opens in the same tab however I would like it to open in a new tab and there is no toggle button to do this in the 'code' widget. Can anyone help?

<a href="https://www.spotlight.com/3572-0166-5248"><img src="https://staticassets.spotlight.com/Webmedia/WebsiteFiles/img/static/weblinks/ImInSpotlight_White.gif" alt="Click to view my Spotlight CV" title="Click to view my Spotlight CV" /></a>

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 1
7 minutes ago, CillianS said:

Hi rwp, thank you for your reply. Could you specify what I should put between the quotation marks in your answer? I tried the following, but the link still opened in the same tab.

<a href="https://www.spotlight.com/3572-0166-5248"><img src="https://staticassets.spotlight.com/Webmedia/WebsiteFiles/img/static/weblinks/ImInSpotlight_White.gif" alt="Click to view my Spotlight CV" title="Click to view my Spotlight CV"target="_blank"> 

<a href="https://www.spotlight.com/3572-0166-5248" target="_blank"><img src="https://staticassets.spotlight.com/Webmedia/WebsiteFiles/img/static/weblinks/ImInSpotlight_White.gif" alt="Click to view my Spotlight CV" title="Click to view my Spotlight CV"target="_blank"> 

 


You can send your question to my email to get faster answer.

How to Setup Password & Share URL  Armadillo - Free portfolio template

Share this post


Link to post
  • 1
<a href="________________" target="_blank">

 


Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Share this post


Link to post
  • 0
On 7/13/2020 at 10:54 PM, rwp said:

<a href="________________" target="_blank">

 

Hi rwp, thank you for your reply. Could you specify what I should put between the quotation marks in your answer? I tried the following, but the link still opened in the same tab.

<a href="https://www.spotlight.com/3572-0166-5248"><img src="https://staticassets.spotlight.com/Webmedia/WebsiteFiles/img/static/weblinks/ImInSpotlight_White.gif" alt="Click to view my Spotlight CV" title="Click to view my Spotlight CV"target="_blank"> 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...