Cirqster Posted September 24, 2013 Share Posted September 24, 2013 I have an image in my gallery that i need to link to an external site. I need this to open in a new tab otherwise it will send customers off of my site, not ideal. Squarespace have told me this is not a currently available feature (no idea why). Does anyone know a way around this/way to inject code to help me out? Link to comment
jasminerh Posted October 22, 2013 Share Posted October 22, 2013 When you add a link to the image, put in the following: https://yourlinkhere.com"target="_blank it works the same for files, example: /s/01.jpg"target="_blank I hope that helps! Essentially you'll add "target="_blank to the end of your URL with no space in-between. designer Link to comment
samfinding_alliants Posted November 21, 2013 Share Posted November 21, 2013 Great workaround Jasminerh - just used on our page here http://www.alliants.com/our-work/ Any idea why the "Open In New Window" option isn't simply available? Link to comment
AndersArrenius Posted February 2, 2014 Share Posted February 2, 2014 Thanks Jasminerh! Worked like a charm. Very helpful! Link to comment
natkathleen Posted March 18, 2014 Share Posted March 18, 2014 Hi Sam, did you ever get this to work on a slider gallery? Link to comment
samfinding_alliants Posted March 18, 2014 Share Posted March 18, 2014 I hadn't actually tried but I just did and it doesn't work unfortunately. http://www.alliants.com/slider-example/ Oddly when you look at the code target="_blank" is there. Squarespace?? Link to comment
ABaeta Posted November 14, 2014 Share Posted November 14, 2014 Thanks Jasminerh! It works like a charm! samfinding_alliants, the solution works but not instantly, you’ll have to wait some minutes to take effect. Link to comment
so-in Posted March 11, 2015 Share Posted March 11, 2015 I have noticed this delay on other things implemented - why is that? Link to comment
neeklamy Posted May 1, 2015 Share Posted May 1, 2015 @SOIN, is that a delay in the window or tab opening? Could you post a link to a page that shows this? The name is an Anglicised form of the Greek Korvetti — I like to think there’s a little bit of the ancient Hellenic drive in me. Link to comment
so-in Posted May 1, 2015 Share Posted May 1, 2015 neither btw - it was after saving the link, to open externally, it did not take affect at first. Seemed to take 5-10 min then worked - did not seem like a cache issue- but that was in march. Link to comment
walkabouts Posted June 29, 2015 Share Posted June 29, 2015 When I try to use this style of link for an image in my gallery, it says it is an invalid link...I tried to upload a photo of the issue, but I'm too new. So I put in my link precisely as instructed, but there's a red warning saying "please enter a valid URL." Is there a reason for this? Please help : ( Link to comment
mpcole731570048054 Posted July 21, 2015 Share Posted July 21, 2015 this does not work for me... i am trying to make links from images in a gallery open in a new tab - when i use this: http://www.google.com" target="_blank format i get an error to please use a valid URL... am i typing something wrong? Link to comment
so-in Posted July 21, 2015 Share Posted July 21, 2015 you you to close the close quote at the end of the word blank if i'm reading this correctly e.g. "target="_blank" Link to comment
mpcole731570048054 Posted July 21, 2015 Share Posted July 21, 2015 I think the fact that there is a space after the .com" target="_blank" is making squarespace give the error... because it's not the full <a href? Link to comment
SquareDeb Posted July 24, 2015 Share Posted July 24, 2015 You need to add the target attribute into your anchor link <a href="http://www.google.com" target="_blank"> link text </a> Link to comment
Mixtus Media Posted August 13, 2015 Share Posted August 13, 2015 To add some clarification here, this is what you're doing: To get a link to open in a new page, the proper HTML is: <a href="http://answers.squarespace.com/questions/23324/gallery-external-link-in-new-windowtab" target="_blank">Link</a> Squarespace doesn't offer the "Open in new window" checkbox in the gallery images like they do in the image block and other link fields. That checkbox simply adds the target="_blank" code before the close bracket. The hack for gallery links to open in a new window is to add the necessary code for it to open in a new window before the closing quotation marks, which is why you add this to the end of your URL (without closing quotes): "target="_blank The first set of quotes are the closing quotes for the URL, and the original closing quotes that Squarespace provides become the closing quotes for the target="_blank". Since Squarespace doesn't allow spaces in its URLs and gives you an error if you try to add it, you need to leave the space before target out. Hope that helps! Link to comment
Mixtus Media Posted August 13, 2015 Share Posted August 13, 2015 See my answer that gives more detail: http://answers.squarespace.com/questions/23324/gallery-external-link-in-new-windowtab/96241 Link to comment
Logie Posted August 19, 2015 Share Posted August 19, 2015 I would like to know to use this as well. I am using the Devlin template and get the same red warning message. Link to comment
loansbazaar Posted August 19, 2015 Share Posted August 19, 2015 To open in a new tab you have to add target="_blank" with the anchor tag...For example if you click that image , it will open in new tab. Code is a href="http://www.loansbazaar.com/images/credit-card-apply-online.jpg" target="_blank" Link to comment
nataliemumford Posted March 17, 2016 Share Posted March 17, 2016 Is anyone able to help me as mine is not working? I am trying to get a file to open in a new window from a gallery. I have done - /s/"H&BBrochure.pdf" target="blank" Any ideas why it is taking me to an unknown error page? @jasminerh @samfinding_alliants @Mixtus Media @AndersArrenius Thanks Link to comment
Fubeman1570048166 Posted April 5, 2016 Share Posted April 5, 2016 To all of those who are getting an error. The reason is that in a few of the postings listed on this page, people have said to add the http://yourlinkhere.com" target="_blank in the URL box. The problem is that there is an extra space before the target="_blank area. Just get rid of that extra space and it should work just fine. So, in conclusion, the exact coding should be: http://yourlinkhere.com"target="_blank Hope this helps. @nataliemumford @jasminerh @samfinding_alliants @Mixtus Media @AndersArrenius @mpcole73 Link to comment
GuruComposer Posted May 7, 2016 Share Posted May 7, 2016 None of these things work. www.wesdevore.com Link to comment
GuruComposer Posted May 7, 2016 Share Posted May 7, 2016 None of these things work. www.wesdevore.com Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.