Social links open new page
Is there any way to make the social media links open in a new page?
Comments (4)
How are you displaying the social-media links? via a plug-in? customizer? theme part? Simplest might be to check WordPress settings (Settings in left-hand black menu) to see if there is an optional “opens in new window” check-off box. If not there, then my first questions might help find an answer.
Thanks for responding. I'm using the built-in Social Media settings built into the UUA theme.
Customize >> Social Networks.
I don't see any "open in new window" settings there, or in the main Settings.
Making those links open in a new window isn't an option due to the accessibility issues it creates. This blog post goes into greater details on why you shouldn't open links in new windows/tabs: https://www.duncanmackenzie.net/blog/do-not-open-new-tabs/.
Locate your HTML code and add target="_blank" attribute to the anchor (<a>) tags.
Ex:
<a href="https://www.facebook.com/yourpage" target="_blank">Facebook</a>
<a href="https://www.twitter.com/yourpage" target="_blank">Twitter</a>
<a href="https://www.instagram.com/yourpage" target="_blank">Instagram</a>