Forum Replies Created
Viewing 1 post (of 1 total)
-
AuthorPosts
-
September 16, 2014 at 3:48 am in reply to: How to change text in tooltip for social media icons in header. #319550
I’ll do my best to help, although I am not the person who changed it.
If you are using child themes, then you’ll have to change it in the child.
We changed a line in /wp-content/themes/enfold/includes/helper-social-media.php
You’ll see the if statements below, I wanted to change ‘mail’ to ‘Check your Email’ and ‘support’ to ‘Customer Support’Hope this helps. Good luck.
Here is the code inside the helper-social-media.php for me beginning at line 55. I’ll give you a big chunk so you can see the context.
function build_icon($icon) { global $avia_config; //special cases switch($icon['social_icon']) { case 'rss': if(empty($icon['social_icon_link'])) $icon['social_icon_link'] = get_bloginfo('rss2_url'); break; case 'twitter': case 'dribbble': case 'vimeo': case 'behance': if(strpos($icon['social_icon_link'], 'http') === false && !empty($icon['social_icon_link'])) { $icon['social_icon_link'] = "http://".$icon['social_icon'].".com/".$icon['social_icon_link']."/"; } break; } if(empty($icon['social_icon_link'])) $icon['social_icon_link'] = "#"; $blank = "target='_blank'"; //dont add target blank to relative urls or urls to the same domain if(strpos($icon['social_icon_link'], 'http') === false || strpos($icon['social_icon_link'], home_url()) !== false) $blank = ""; $html = ""; $html .= "<".$this->args['inside']." class='".$this->args['class']."_".$icon['social_icon']." av-social-link-".$icon['social_icon']." social_icon_".$this->counter."'>"; $html .= "<a {$blank} href='".$icon['social_icon_link']."' ".av_icon_string($icon['social_icon']); if($icon['social_icon'] == 'mail'){ $html .= "title = 'Check your Email'"; } elseif($icon['social_icon'] == 'support'){ $html .= "title = 'Customer Support'"; } else { $html .= "title='".ucfirst($icon['social_icon'])."'"; } $html .= "><span class='avia_hidden_link_text'>".ucfirst($icon['social_icon'])."</span></a>"; $html .= "</".$this->args['inside'].">"; return $html; }
-
AuthorPosts
Viewing 1 post (of 1 total)