Debut theme , redirecting medial socia icons on clik to a new tab

Solved
Highlighted
New Member
2 0 0

Hello every body, 

 

I would like your help please, when i click on the media icons  ( instagram , facebook ) on my website, its opening on the same tab, customer are leaving the site.

I would like to open a new tab on click on those icons.

 

i looked at the theme.js.  to find any code about icons but i m not able to do it, i m a beginner.

i know that i have to change for that, but can find where ! !!! 

<a href="lien.html" onclick="window.open(this.href); return false;"></a>

 

thanks a lot. for your help ( maybe )  :)

\

0 Likes
Highlighted
Shopify Partner
1023 214 464

This is an accepted solution.

@DimitriFP 

 

Go to the Sections > footer.liquid file and find the class name "social-icons__item".

Now you just need to add target="_blank" attribute in <a> tag:

target_blank1.png

 

Cheers,

Tejas

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help
0 Likes
Highlighted
New Member
2 0 0

Thanks a lot, it works fine !  i had headeachs about finding the solution XD 

Have a great day ! 

stay safe 

 

0 Likes