• Resolved burlingtonpress

    (@burlingtonpress)


    Is there an easy way to change the name/title element for one of the social media services? For instance, I want to take the Email service and change it to Newsletter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nahuai Badiola

    (@nahuai)

    Hi,

    Yes, you can use the filter simple_social_default_profiles to change the email label.

    Here is the code you could add to your functions.php or a functionality plugin:

    add_filter('simple_social_default_profiles', 'modify_social_icon_labels');
    function modify_social_icon_labels($profiles) {
    if (isset($profiles['email'])) {
    $profiles['email']['label'] = __('Newsletter URI', 'simple-social-icons');
    // The second parameter in get_icon_markup will change the visible label
    $profiles['email']['pattern'] = str_replace(
    '>Email<',
    '>Newsletter<',
    $profiles['email']['pattern']
    );
    }
    return $profiles;
    }

    I hope that helps.

    Best.

    Thread Starter burlingtonpress

    (@burlingtonpress)

    Perfect, thank you!

    Plugin Author Nahuai Badiola

    (@nahuai)

    Great! Happy to help! 

    If you are satisfied with the plugin, please consider leaving us a review. Your feedback not only motivates us to keep improving it, but also helps guide others looking for a one-purpose, lightweight plugin like this. 

    Have a nice day.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change Name/Title’ is closed to new replies.