What's your biggest current challenge? Have your say in Community Polls along the right column.

IMPACT THEME OPEN- HELP- MENU TAB IN NEW WINDOW

IMPACT THEME OPEN- HELP- MENU TAB IN NEW WINDOW

stealyourface11
New Member
4 0 0

Screenshot 2024-11-12 at 7.29.57 PM.pngHi there, 

 

Looking to have the website links under menu >  freedom+ > freedom alliance partner brands  to open in new tabs...

 

how can we do this?

Replies 11 (11)

DaisyVo
Shopify Partner
992 126 141

Hi @stealyourface11 

 

Could you please provide your store URL and password if it is password-protected so we can check it for you?

 

Best,

 

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

AnneLuo
Shopify Partner
1138 211 235

Hi, @stealyourface11 

Can you share your store url so that I can assist you?

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

stealyourface11
New Member
4 0 0

freedom-industries.myshopify.com

AnneLuo
Shopify Partner
1138 211 235

I can help you with it. But it needs to add some custom code. If you need my help, please let me know.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee

Dan-From-Ryviu
Shopify Partner
10283 2042 2112

Hi @stealyourface11 

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.

stealyourface11
New Member
4 0 0

Not seeing anything specific with a </body> ...not really sure where to add

Dan-From-Ryviu
Shopify Partner
10283 2042 2112

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.

namphan
Shopify Partner
2019 267 295

Hi @stealyourface11,

Please send me the code of header.liquid file, I will help you check and add it

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

PageFly-Richard
Shopify Partner
4801 1085 1753

Hi @stealyourface11 

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.

stealyourface11
New Member
4 0 0

Not seeing anything specific with a </head> ... i see  <head> and added it above .. no result

DaisyVo
Shopify Partner
992 126 141

Hi @stealyourface11 

 

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 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution