Alnichols Posted December 17, 2016 Share Posted December 17, 2016 Bedford TemplateSite: www.workinghorsemagazine.comArea in question: Please scroll down below the image of the current cover to the gallery below the text "Click on the images below to learn more about our friends who are featured in the current issue! " Each image in the Gallery has a clickthrough URL to the advertisers website. However, I would prefer it to Open In New Window. This is not showing as an option in individual image settings or on the Design tab for either Slideshow or Carousel. Am I missing something? Or is Open In A New Window just not an option in the Gallery with the Bedford template? Thanks in advance for your help. Link to comment
kerryoco Posted December 17, 2016 Share Posted December 17, 2016 It looks like it's not a default option (which it should be), so you can make it happen by going to: Settings > Advanced > Code Injection Once there, paste this in "HEADER": <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> And paste this in "FOOTER": <script>$('.sqs-block-gallery a').attr('target','_blank')</script> That will change ALL gallery image links on your site to new tab links, just fyi.The 'header injection' is called jquery, which allows us to use the code in the footer injection. I just tested on my squarespace site and it works. Link to comment
Alnichols Posted December 18, 2016 Author Share Posted December 18, 2016 @kerryoco THANK YOU!!! That worked perfectly, I appreciate your quick and knowledgeable response! Link to comment
maiteuralde1570048299 Posted April 26, 2017 Share Posted April 26, 2017 This doesn't work on my page :( Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.