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

Bedford / Clickthrough URL in Gallery / Open In New Window Question

Question

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.

alt text

ss-screenshots.jpg.e89404f7dc7165f4cc2deb12a95704b6.jpg

Edited by Alnichols
Initial Revision

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

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.

Edited by kerryoco

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...