Footer Link Opening Over Previous Tab

Hello, I currently have a number of social media accounts linked in my footer. When you click on one of the icons, the social media page opens up in a new tab. However, if you specifically click on the YouTube icon first, and then another icon, it opens the next one on top of the YouTube tab, rather than in its own, new tab. Is there a way that I can fix this?

This is my website where I’m having the issue.

Thank you!

Hello @diatonicnerds,

Thanks for writing in!

The <a> tag target attribute should be using _blank to open a new tab.

When I check your site’s footer, I am seeing this:

Take notice that the target attribute is only using “blank” which is incorrect. Do you have a custom Social Icons PHP coding in your child theme’s functions.php? please do check it and use the correct target attribute.

Kindly let us know how it goes.

Hello,

I don’t believe I have made any edits to it, I’m not even sure how to. If you tell me how to check that, I can make sure though.

Hi @diatonicnerds,

The blank will open the first-clicked link in a new tab, but any future links that share target=“blank” will open in that same newly-opened tab. And that is why it opens in the same tab, but it has been also found that it opens in a different tab in a few cases. I have also checked it in my local environment and found the same. I will add this to our issue tracker for further investigation by our development team.
I would suggest you go through the following article on the same.

Hope it helps.
Thanks

Hello,

Thank you for the explanation. Is there any way that I could manually change it to _blank?

Hi @diatonicnerds,

Unfortunately, there is no option to change that at the moment.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.