Tagged: nofollow, social icons
The longer I work with Enfold, the more I love it!
Putting the social network icons in the headerbar is a good idea; but I realized all those links are “follow” – since they’re on top of every page, I’d rather make them nofollow-Links; is that possible?
greetings,
Ritchie
Hey datadirt!
Yes, open up wp-content/themes/enfold/includes/helper-social-media.php and replace:
$this->html .= "<a {$blank} href='".$share['url']."' ".av_icon_string($icon)." title='' data-avia-related-tooltip='{$name}'><span class='avia_hidden_link_text'>{$name}</span></a>";
with
$this->html .= "<a {$blank} rel='nofollow' href='".$share['url']."' ".av_icon_string($icon)." title='' data-avia-related-tooltip='{$name}'><span class='avia_hidden_link_text'>{$name}</span></a>";
Best regards,
Peter
Hi Peter,
thank you very much! I saw that the code on line 228 is for the social sharing icons; I actually meant the code for the social profile icons on line 83 (Just letting you know in case you’re going to integrate the nofollow in the next release):
$html .= "<a {$blank} href='".$icon['social_icon_link']."' ".av_icon_string($icon['social_icon'])." title='".ucfirst($icon['social_icon'])."'><span class='avia_hidden_link_text'>".ucfirst($icon['social_icon'])."</span></a>";
Thanks a lot and greetings from Vienna,
Ritchie
Hey!
Glad you found the code of the social icons :) – tbh we don’t plan to add the nofollow attribute to the links but maybe I’ll add a filter with the next update which help you to overwrite the default output with a child theme.
Cheers!
Peter