• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Simple social icon – adding phone number URL

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Simple social icon – adding phone number URL

This topic is: not resolved

Tagged: simple social icon

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 7 months ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 4, 2017 at 9:36 am #211090
    Saqib Ali
    Member

    I'd like to add my phone number to the phone field within the Simple social icon widget.

    Within my contact page, I've done it the usual way, whereby a user is able to click on the link below and it'll automatically add the telephone to their phone but it

    
    <div class="phone-info"><strong>Phone</strong>:<a href="tel://01582 452424">01582 452424</a> </div>
    

    How would I go about doing the same within using this plugin?

    September 5, 2017 at 6:38 am #211121
    Victor Font
    Moderator

    Simple Social Icons has a filter you can use to add your own icons. The filter is simple_social_default_profiles and is applied at line 106 of simple-social-icons.php. The way you use this filter is to add code similar to this in your functions.php

    add_filter('simple_social_default_profiles', 'my_custom_icon');
    function my_custom_icon( $profiles ) {
        
        $profiles[] = 'telephone' => array(
    				'label'   => __( 'Telephone URI', 'simple-social-icons' ),
    				'pattern' => '<li class="ssi-telephone"><a href="tel:%s" %s><svg role="img" class="social-telephone" aria-labelledby="social-telephone"><title id="social-telephone">' . __( 'Telephone', 'simple-social-icons' ) . '</title><use xlink:href="' . esc_url( plugin_dir_url(__FILE__) . 'symbol-defs.svg#social-email' ) . '"></use></svg></a></li>',
    			),
    			
        return $profiles;
    }

    You'll have to figure out the graphics yourself and finish debugging this code. This code is not tested and is meant only as an example. SSI uses SVG images for its icons. The SVG code is still in the above example, but you'll have to change it to the image of your choice.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble