Support » Plugin: AddToAny Share Buttons » External Dofollow Links: addtoany.com

  • sherazzahid

    (@sherazzahid)


    Hey

    I installed WP External link plugin and External link plugin in order to put the link ‘rel=nofollow’. I happy to remove the scoial media outbbound links but addtoany.com is still there. I followed an other post where somebody suggested to use the additional javascript code below but its still not changing the behaviour of dofollow link to no follow link. Can anyone please help to to solve this problem?
    Thanks
    Sheraz

    
    a2a_config.callbacks.push({
        ready: function() {
            var addtoany_link = document.querySelector('.a2a_full_footer > a');
            if (addtoany_link) {
                addtoany_link.rel = 'nofollow noopener';
            }
        }
    });
Viewing 1 replies (of 1 total)
  • Plugin Author micropat

    (@micropat)

    Hi Sheraz,

    That code works. Be sure to use your browser’s developer tools to inspect the element to see the rel attributed updated to nofollow noopener.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.