• Resolved tiagosigo

    (@tiagosigo)


    Hello, I just found out that there are a lot of links created by the AddToAny plugin, more than 100. I had to look one by one to find out if they are dofollow or nofollow, because of SEO.

    I found out that all the links are rel=”nofollow noopener”, but the link to your website “addtoany.com” is the only one that is only rel=”noopener”. I really appreciate your awesome job guys, but I would like to give dofollow or nofollow when and where I really want. I have been looking for how and where to add the rel=”nofollow noopener” to your website link, but I just didn’t find a way to do it. I searched the forum, but I didn’t find any answer for it.

    I just know that the link is in:
    <div class=”a2a_full_footer”>
    and is written this way:
    <href=”https://www.addtoany.com&#8221; title=”Share Buttons” target=”_blank” rel=”noopener noreferrer”>

    But it’s hard to find where to edit it, because it’s not in the “plugin editor”.

    I don’t want to delete any part of the code, I just want to add the nofollow. Could you guys help me to do it? Or at least tell me where is the file to edit it?

    • This topic was modified 6 years ago by tiagosigo. Reason: wrong tag created
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    Hello! You can do that by adding the following code to your “Additional JavaScript” box in Settings > AddToAny:

    a2a_config.callbacks.push({
        ready: function() {
            var addtoany_link = document.querySelector('.a2a_full_footer > a');
            if (addtoany_link) {
                addtoany_link.rel = 'nofollow noopener';
            }
        }
    });
    Thread Starter tiagosigo

    (@tiagosigo)

    Hello @micropat ,
    Thank you very much for your answer. I already did it and it works!
    For sure I am going to give you a 5 star!
    Regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add rel=”nofollow” to links of AddToAny Plugin’ is closed to new replies.