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 and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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 and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. 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
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024