Wordpress plugins
Menu Social Icons

Menu Social Icons

Version : 1.3.10
Tested up to : 3.8.22
Number of download : 131547
Author : Paul Clark

Screenshots

Menu Social Icons
Menu Social Icons
Menu Social Icons
Menu Social Icons

This plugin changes social website links in any of your WordPress menus to use icons from FontAwesome. No configuration is necessary, other having links to your social media profiles in the built-in WordPress menus.Â? Add links to any of these social sites under Appearance > Menus, then enable the plugin. Supported Sites bitbucket.orgÂ? Â? Â? Â? Â? Â? dribbble.comÂ? Â? Â? Â? dropbox.com facebook.comÂ? Â? Â? Â? Â? Â? Â? flickr.comÂ? Â? Â? Â? Â? Â? foursquare.com github.comÂ? Â? Â? Â? Â? Â? Â? Â? Â? gittip.comÂ? Â? Â? Â? Â? Â? instagram.com linkedin.comÂ? Â? Â? Â? Â? Â? Â? mailto:(email)Â? Â? pinterest.com plus.google.comÂ? Â? Â? Â? renren.comÂ? Â? Â? Â? Â? Â? *slideshare.net stackoverflow.comÂ? Â? *stackexchange.comÂ? trello.com tumblr.comÂ? Â? Â? Â? Â? Â? Â? Â? Â? twitter.comÂ? Â? Â? Â? Â? *vimeo.com vk.comÂ? Â? Â? Â? Â? Â? Â? Â? Â? Â? Â? Â? Â? weibo.comÂ? Â? Â? Â? Â? Â? Â? xing.com youtube.com * Requires storm_social_icons_use_latest be turned on. (See below.) Changing Icon Appearance If you want to edit the appearance of the icons in ways that the options below don’t provide, you can do more with custom CSS to match your theme. This video walks through the process: Option: Add Vimeo and Stack Exchange To use FontAwesome 4.0+, which drops support for IE7, but adds vimeo.com and stackexchange.com, add this to your theme’s functions.php file: add_filter( ‘storm_social_icons_use_latest’, ‘__return_true’ ); Option: Show Text To show menu item text in addition to the icons, add this to your theme’s functions.php file: add_filter( ‘storm_social_icons_hide_text’, ‘__return_false’ ); Option: Alternate Icons To show an alternative icon style, where logos are cut out of signs, , add this to your theme’s functions.php file: add_filter( ‘storm_social_icons_type’, create_function( ”, ‘return “icon-sign”;’ ) ); Option: Icon Sizes To vary icon sizes, add this to your theme’s functions.php file: (Default is 2x) add_filter( 'storm_social_icons_size', create_function( '', 'return "normal";' ) ); add_filter( 'storm_social_icons_size', create_function( '', 'return "large";' ) ); add_filter( 'storm_social_icons_size', create_function( '', 'return "2x";' ) ); add_filter( 'storm_social_icons_size', create_function( '', 'return "3x";' ) ); add_filter( 'storm_social_icons_size', create_function( '', 'return "4x";' ) ); Option: Add More Icons Add icons from FontAwesome for other URLs. For example, an RSS feed: add_filter( 'storm_social_icons_networks', 'storm_social_icons_networks'); function storm_social_icons_networks( $networks ) { $extra_icons = array ( '/feed' => array( // Enable this icon for any URL containing this text 'name' => 'RSS', // Default menu item label 'class' => 'rss', // Custom class 'icon' => 'icon-rss', // FontAwesome class 'icon-sign' => 'icon-rss-sign' // May not be available. Check FontAwesome. ), ); $extra_icons = array_merge( $networks, $extra_icons ); return $extra_icons; } Option: Change HTML Output This is useful for developers using the plugin with custom icon sets. Edit icon HTML output: add_filter( 'storm_social_icons_icon_html', 'storm_social_icons_icon_html', 10, 4 ); function storm_social_icons_icon_html( $html, $size, $icon, $show_text ) { $html = "<i class='$size $icon $show_text'></i>"; return $html; } Edit title HTML output: add_filter( 'storm_social_icons_title_html', 'storm_social_icons_title_html', 10, 2 ); function storm_social_icons_title_html( $html, $title ){ $html = "<span class='fa-hidden'>$title</span>"; return $html; } Edit all link attributes (WordPress core filter): add_filter( 'wp_nav_menu_objects', 'storm_wp_nav_menu_objects', 7, 2 ); function storm_wp_nav_menu_objects( $sorted_menu_items, $args ){ foreach( $sorted_menu_items as &$item ) { if ( 0 != $item->menu_item_parent ) { // Skip submenu items continue; } // Only apply changes to links containing this text. $search_url = 'facebook.com'; if ( false !== strpos( $item->url, $search_url ) ) { // Add a custom class $item->classes[] = 'some-custom-class'; // Add custom HTML inside the link $item->title = '<strong>custom html</strong>' . $item->title; } } return $sorted_menu_items; }

Download now