Shopify themes, liquid, logos, and UX
Could you please provide your store URL and password if it is password-protected so we can check it for you?
Best,
Daisy
Hi, @stealyourface11
Can you share your store url so that I can assist you?
freedom-industries.myshopify.com
I can help you with it. But it needs to add some custom code. If you need my help, please let me know.
Please go to your Online Store > Themes > Edit code > Open theme.liquid file, add this code before </body>, save your file and check.
<script>
const specificLinks = [
"https://freedomindustries.com/community/membership",
// Add other specific URLs here if needed
];
document.querySelectorAll('.contents .contents .contents a').forEach(link => {
const href = link.getAttribute('href');
if (specificLinks.includes(href)) {
link.setAttribute('target', '_blank');
}
});
<script>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Not seeing anything specific with a </body> ...not really sure where to add
So you can add it before </html> or </head>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Amazon Products Importer - Import Amazon Products to Dropship in Your Store!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @stealyourface11,
Please send me the code of header.liquid file, I will help you check and add it
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<script>
document.querySelectorAll('.header__link-list > ul > li:last-child a').forEach(link => {
link.setAttribute('target', '_blank');
});
</script>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Not seeing anything specific with a </head> ... i see <head> and added it above .. no result
This store is using the Impact theme, which is a paid theme, so we can’t check the code directly. Therefore, I checked and used the Dawn theme as an example.
- The links here are in <a> tags: https://prnt.sc/NdfDmw23R2WX.
- Find the file containing the <a> tags. In the Dawn theme, it's this file: https://prnt.sc/KB7dwumNmojN, although it might be different in the theme they’re using.
- Add this snippet https://prnt.sc/Ukvr5ZIIgk5v target="_blank" to all <a> tags.
- Save the changes, reload the page, and now, when you click on a link, it will open in a new tab.
I hope this helps
Best,
Daisy
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