Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #299014

    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

    #299124

    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

    #299141

    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

    #299152

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.