Site logo

Archived topic

Turn nofollow links into dofollow links

5 replies · Started by Bestiale on December 10, 2018

Viewing posts 1–6 of 6

Hello,

I have noticed that on the social media icons at the bottom of the website, I have "nofollow" links in the code.
I want to remove rel="nofollow", to try to fix these links.

Could you tell me where I should look for the source of the social media icons? WordPress says that they are widgets developed by GeneratePress. So, I assume you can help me with that?

Thanks!
Iliyana

Hi there,

Happy New Year!

In the comments of the code that you sent, says that "it remove the rel= completely rather than changed it to rel=follow". Can you tell me if this is the last version of this code or should I do something else?

I don't want to put it on my website if it is not working completely.

Thanks!
Iliyana

Hmm maybe give this a shot:

add_filter( 'lsi_icon_rel_attribute', function() {
    return 'follow';
} );

Thanks! I'm a bit confused as to where I can change the code for the social media icons at the bottom of the theme. Could you tell me where is the file for them and what is its name please?

By the way the reason I am asking this is because Google is saying that they do not use the best coding practices so it would be ideal if you could fix this in the theme. Here are the issues according to Lighthouse:
https://1drv.ms/u/s!Ap4o2XTLsCbyiLR3moHvi0FTccgWUA

Hi there,

That's something that needs to be fixed in the plugin. I'll try to get that done ASAP.

Thanks!

This archived topic is closed to new replies.