Social icons don’t open in new window (after update?)

This topic has 10 replies, 4 voices, and was last updated 2 years, 9 months ago ago by Robert Hall

  • Avatar: Bas_Kling
    Bas Kling
    Participant
    February 24, 2022 at 22:23

    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?

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 25, 2022 at 07:39

    Hello,

    Provide temporary wp-admin and FTP access, so we can take a closer look.

    Regards

    Avatar: Bas_Kling
    Bas Kling
    Participant
    February 25, 2022 at 12:50

    Invite to Servebolt / SFTP sent to support@xstore.com
    Please use SFTP port 1022

    wp-admin credentials in private

    Please contact administrator
    for this information.
    Avatar: Niddy
    Niddy
    Participant
    February 25, 2022 at 13:03

    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!

    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 25, 2022 at 22:46

    Hello,

    We have added JS code to your child theme. Please clear your cache and CDN to make your JS code work.

    Regards

    Avatar: Niddy
    Niddy
    Participant
    February 25, 2022 at 22:49

    Is it possible to share the .js you added; for others benefit please.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 25, 2022 at 22:51

    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

    Avatar: Niddy
    Niddy
    Participant
    February 25, 2022 at 22:53

    @robert-hall

    Thank you very much. Appreciated. ?

    Avatar: Bas_Kling
    Bas Kling
    Participant
    February 25, 2022 at 23:15

    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

    Please contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 25, 2022 at 23:25

    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

  • Viewing 10 results - 1 through 10 (of 10 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.