Hi guys,
Please let me know How to add rel=“nofollow” to social buttons guys?
What file should I edit? I need it badly thanks a lot.
Hi guys,
Please let me know How to add rel=“nofollow” to social buttons guys?
What file should I edit? I need it badly thanks a lot.
To add nofollow for links you have to edit file called extras.php
that you can find inside sparkling folder - inc.
Replace this line of code on that file:
if ( $active[$service] ) { echo '<a href="'. esc_url( $active[$service] ) .'" title="'. __('Follow us on ','sparkling').$name.'" class="'. $service .'" target="_blank"><i class="social_icon fa fa-'.$service.'"></i></a>';}
With this one:
if ( $active[$service] ) { echo '<a href="'. esc_url( $active[$service] ) .'" title="'. __('Follow us on ','sparkling').$name.'" class="'. $service .'" target="_blank" rel="nofollow"><i class="social_icon fa fa-'.$service.'"></i></a>';}
The only difference between those two lines are rel=“nofollow”
and if you can add it exactly like that inside that code it’s fine too.
thanks a lot my friend. The response was super fast and helpfull.