Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi! I am trying to get this button to open its link (social media handle) in a new browser page instead of redirecting it off the site.
I am using the "Refresh" template.
Thanks!
Becca
To make a button open a link in a new browser page instead of redirecting off the site in the "Refresh" template, you can add the target="_blank"
attribute to the HTML code of the button. Here's an example:
<a href="https://your-social-media-link" target="_blank" class="your-button-class">Button Text</a>
Replace https://your-social-media-link
with the actual link to your social media handle, and your-button-class
with the class name or any additional styling you have for the button.
By adding target="_blank"
, the link will open in a new browser tab or window, allowing users to keep your site open while visiting the social media page.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025