Thanks for adding the social icons to the header
I would like to change the standard titles from:
<a title=”Facebook”
to title”Like xyzbiz on Facebook” for example
Which file contains the social icon titles?
Thanks for your help and being the theme rockstars you are!
May be good idea to add rel=nofollow to these social icon out-bound links since they are displayed site-wide to preserve pagerank
if anyone is interested in that here’s what I did:
add rel=’nofollow’ to includes/helper-social-media.php line 80:
$html .= "<a {$blank} rel='nofollow' href='".$icon['social_icon_link']."' ".av_icon_string($icon['social_icon'])."
title='".ucfirst($icon['social_icon'])."'></a>";
Hi ttem!
Thank you for the question. I hope all is well with you today.
You can change the title on the same file that you edited.
Best regards,
Ismael
Hey Ismael,
Yes, I know that file controls the titles though the strings are stored elsewhere and are pulled in with this snippet:
on line 80
title='".ucfirst($icon['social_icon'])."'
Possibly use case argument like in lines 59-63
case ‘facebook’:
case ‘twitter’:
etc.
to change titles?
Thanks for helping on this
Hi!
Please add this on functions.php:
add_filter('avia_filter_social_icons', 'avia_social_icons_title');
function avia_social_icons_title($icons) {
$i = 0;
foreach ($icons as $icon) {
if($icon['social_icon'] == 'facebook')
{
$icons[$i] = array(
'social_icon' => str_replace('facebook', '', 'Like xyzbiz on Facebook'),
'social_icon_link' => $icon['social_icon_link']
);
break;
}
$i++;
}
return $icons;
}
Find this code on the same file:
'facebook' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f3'),
Replace it with:
'Like xyzbiz on Facebook' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f3'),
Best regards,
Ismael
Thank you Ismael! I didn’t think it was going to that complicated.
Cheers!