Support » Plugin: Menu Social Icons » Just works!

  • I was just wondering what would be the easiest was to do this and – voila! you had already done it. Thank you, great plugin!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author PD.CM


    Awesome! Thanks Michelle! I’m glad to hear it saved you some time. 🙂

    It surely did – usually I roll my own fonts at IcoMoon but it’s not as easy for my end-users to administrate.

    Now looking at your code to see if I can figure out how to add in RSS / Email icons the same way … 😉

    Thanks again!

    Plugin Author PD.CM


    Shouldn’t be too difficult. There are other plugins that add FontAwesome icons if you use the right class in your menus… My plugin is doing detection by checking for various values in the link URL.

    This is where the check happens:

    And this is the array of icons and URLs it’s checking:

    Adding this line *should* get you e-mail:

    'mailto:' => array( 'class' => 'envelope', 'icon' => 'icon-envelope', 'icon-sign' => 'icon-envelope-alt' ),

    And this should get you RSS (changing “feed” to something in your RSS URL)

    '/feed' => array( 'class' => 'rss', 'icon' => 'icon-rss', 'icon-sign' => 'icon-rss-sign' ),

    I apologize, I don’t have a filter available on networks right now. Adding one would let these be added without hacking the plugin. Modifying the plugin directly will of course make updating an issue.

    You rock! And I think I figured it out. I added this to line 114 of your plugin:

    $this->networks = apply_filters( 'storm_social_icons_networks', $this->networks );

    And then this in my functions.php file:

    add_filter( 'storm_social_icons_networks', 'extra_icons');
    function extra_icons($networks) {
        $extra_icons = array (
            'mailto:' => array( 'class' => 'envelope', 'icon' => 'icon-envelope-alt', 'icon-sign' => 'icon-envelope' ),
            '/feed' => array( 'class' => 'rss', 'icon' => 'icon-rss', 'icon-sign' => 'icon-rss-sign' ),
        $extra_icons = array_merge( $networks, $extra_icons );
        return $extra_icons;

    Worked like a charm. 🙂 Thanks again!!

    Plugin Author PD.CM


    Thanks for the help! I have released that filter in version 1.2, and added the icon for mailto: links as standard.

    I did change envelope-alt to the secondary envelope icon, but your filter should still work to change it back.

    I kept RSS feeds outside of the core plugin because feed URLs can vary. Using site_url( '/feed' ); might work for most people, but I didn’t have time to mess with it today.

    I credited you in the changelog as well.

    Wow, cool! Thanks Paul! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Just works!’ is closed to new replies.