Categories

Featured templates

WordPress. How to rename tooltips on social icons

Judy Waters March 27, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial will show you how to change names of tooltips on social icons in WordPress.

WordPress. How to rename tooltips on social icons

In order to change tooltips text on the social icons, you should edit ‘static-social-networks.php’ file. Log into the dashboard of your site and navigate to the Appearance> Editor> themeXXXXX section. Find the needed file in the list of the available items – ‘static-social-networks.php’. You will have to modify the php code:

  1. Copy the current array for the social networks (that should be around line 8):

    $social_networks  = array("twitter", "google", "facebook",  "rss"); 

    Paste it below and edit it to look as follows:

    $social_networks_titles  = array(__('Follow us on Twitter, CURRENT_THEME),__('Follow us on google',  CURRENT_THEME),
    __('Follow us on facebook', CURRENT_THEME), __('Follow us on  RSS', CURRENT_THEME));

    WordPress_How_to_change_tooltips_names_on_social_icons_1

    ‘Follow us on …’ text can be replaced with your custom one. This text specifically will appear as a tooltip.

  2. Then scroll down and locate the following piece of code (it should be around line 12):
    echo  '<li><a href="'.of_get_option($social_networks[$i]).'"  title="'.$social_networks[$i].'">
    <img  src="'.of_get_option($social_networks[$i]."_icon").'"  alt="'.$social_networks[$i].'"></a></li>';

    Modify that to look as follows below:

    echo  '<li><a href="'.of_get_option($social_networks[$i]).'"  title="'.$social_networks_titles[$i].'">
      <img  src="'.of_get_option($social_networks[$i]."_icon").'"  alt="'.$social_networks_titles[$i].'"></a></li>';

    WordPress_How_to_change_tooltips_names_on_social_icons_2

Update the file and refresh your site. Tooltips text should be successfully modified.

Feel free to check the detailed video tutorial below:

WordPress. How to rename tooltips on social icons

New Wordpress Themes
This entry was posted in WordPress Tutorials and tagged icon, name, social, tooltip, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket