Jump to content

SpaceRants

Member
  • Posts

    3
  • Joined

  • Last visited

Personal Information

SpaceRants's Achievements

  1. Site URL: https://www.spacerants.com/ On the "Listen" section of my home page are twelve buttons (really hyperlinked images) to various podcasting platforms. Spotify, Stitcher, etc. For these "buttons" to wrap and scale properly, I must use a "summary" block set to "Grid." Problem is, clicking on the images now opens the link in your current tab, rather than creating a new one. To solve this I found and deployed this code in the footer: <script> document.querySelector('.sqs-block-summary-v2 a').setAttribute('target', '_blank'); </script> So far I've succeeded in making the first image in the summary block open its link in a new tab, but every other image still opens the link in the current tab. I'm guessing a minor change to the existing code will solve this, but I'm in over my head at this point. Help!
  2. Sorry - I'm a little confused. How did you modify the code? Currently I have: <script> document.querySelector('.sqs-block-summary-v2 a').setAttribute('target', '_blank'); </script> and only the first item in the gallery opens in a new tab.
×
×
  • 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.