How to make all external links to social media nofollow

Posted in: Newspaper
Post count: 200

Hi guys,

I just found out that there are thousands of dofollow links to social media (Facebook, Google+, Pinterest, Twitter) generated through the post end social buttons. Please see an example here.

How can I generally nofollow all links to social media?

Thanks.

Post count: 22421

Hello,

Sorry but you cannot add a nofollow to multiple links at once. If you want to add a nofollow tag, you will have to do it manually or find a plugin that can do it for you.
The social media share buttons are found here: https://www.screencast.com/t/WRRRAyVYIZ and the same code further down the page for the bottom sharing options.

Thank you!

Post count: 200

Hi,

thanks for the reply. Can I add a rel=”nofollow” to each row in the file you mentioned?
If that will solve my the problem, where exactly should I add it?

Like this:
<a rel=”nofollow” class=”td-social-sharing…
or like this
<a class=”td-social-sharing…-facebook” rel=”nofollow” href=”… ?

You are saying that I cannot add a nofollow to multiple links at once. What do you mean? If the above example works, can I just add the nofollow to each row in the code for the different social media?

Thanks

Post count: 122

Hi DaveS,

I use newspaper for years now and set my external links via plugin to rel=”nofollow”. I am currently using “WP External Links” for that.

best,
Norman

Post count: 200

It’s not worth installing a plugin just because of this. I would prefer to avoid an unnecessary install.

Post count: 22421

Hi,

You can add rel= “nofollow” to each of the elements I presented in my screenshot. Simply paste the code in the mentioned lines of code but mind the syntax. There is another instance of that code further down the page for the bottom social icons though.

Thanks.

Post count: 200

Hi,

Thank you. Btw I’m not using the first set of buttons (at the beginning of the page). Can I just remove their code from being executed?
If yes, what is the exact snippet that has to be removed?

Thanks.

Post count: 22421

Hello,

If you disable the option in the theme panel: https://www.screencast.com/t/F2Hal9YIACc4 then you do not need to remove any code.

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.