This topic has 10 replies, 4 voices, and was last updated 2 years, 9 months ago ago by Robert Hall
Hi,
Many of us I think have social icons in our footer, linking them to their respective channels. Not sure if this was ever any different in the past, but I see they don’t open in new windows. This is very, VERY bad for conversion.
Could this be changed, or am I missing a setting to enable this myself?
Hello,
Provide temporary wp-admin and FTP access, so we can take a closer look.
Regards
Invite to Servebolt / SFTP sent to support@xstore.com
Please use SFTP port 1022
wp-admin credentials in private
Following as also noticed this annoying issue. Same in header / contact page etc – there is nowhere to actually add open in new window in settings!
Hello,
We have added JS code to your child theme. Please clear your cache and CDN to make your JS code work.
Regards
Is it possible to share the .js you added; for others benefit please.
Hello Niddy,
Thanks for your feedback, I will forward your feature request about extra options for socials to our developer team.
Please add the following JS code to your website and it should achieve what you need.
If you have any questions please open a new topic.
var links = document.querySelectorAll(".etheme_widget_socials a"); for (let i = 0, linksLength = links.length ; i < linksLength ; i++) { if (links[i].hostname !== window.location.hostname) { links[i].target = '_blank'; links[i].rel = 'noreferrer noopener'; } }
Regards
@robert-hall
Thank you very much. Appreciated. ?
I’ve noticed that the code has already been added to the custom js (url in private). By you?
However, socials still don’t open in new window
Hello,
I can not see those JS code in the following link https://www.voyeurx.nl/wp-content/themes/xstore-child/js/voyeurx-custom.js
Most probably it is not loading by your CDN. you could add JS code by yourself in the proper place or try to clear your cache.
Regards
Tagged: best selling themes, new window, persuasive, social icons, update, woocommerce
The issue related to '‘Social icons don’t open in new window (after update?)’' has been successfully resolved, and the topic is now closed for further responses