- AuthorPosts
- July 24, 2020 at 12:06 pm #25365VahhabGuest
I was able to add linkedin, facebook, twitter, Instagram and all other social media icons to the social menu, but I wasn’t able to add the phone call icon to that menu either.
everytime I use tel:Phone_Number, it only shows a text message, working as a fast calling button, but I would like to have a phone call icon instead of a text message.
I would like to know if this is supported on BoldGrid or Pavilion Theme (my current theme).
Thanks.
July 24, 2020 at 12:30 pm #25370Jesse OwensKeymasterHi Vahhab-
By default, the phone icon isn’t included in the social media networks that have icons, but with a little work you can accomplish this.
Here’s the procedure to add a custom social media icon, along with detailed explanations of the code.
To summarize, you’ll need to install the plugin Code Snippets to add the phone icon. Here’s the precise code you’ll need to use in your snippet:
function my_add_custom_icon_phone( $networks ) { $networks['tel:'] = array( 'name' => 'Call', 'class' => 'call', 'icon' => 'fa fa-phone', 'icon-sign' => 'fa fa-phone-square', 'icon-square-open' => 'fa fa-phone fa-phone-1x', 'icon-square' => 'fa fa-imdb fa-phone-1x', 'icon-circle-open-thin' => 'fa fa-phone fa-phone-1x', 'icon-circle-open' => 'fa fa-phone fa-phone-1x', 'icon-circle' => 'fa fa-phone fa-phone-1x', ); return $networks; } add_filter( 'boldgrid_social_icon_networks', 'my_add_custom_icon_phone' );
Just to be safe, I highly recommend using the option to Only run once the first time you save your snippet, just in case there was a typo. If you don’t get an error after running the code once, you can activate the snippet and select Run snippet everywhere.
Now that you’ve added the icon, all you have to do is make your menu link. Navigate to Customize > Menus and click on Social Media. Add a new Custom Link menu item. For the URL, add your phone number prefixed with tel: , for example, tel:123-456-7890. Here’s what it should look like:
Now, you should see the new icon in your social media icons:
July 24, 2020 at 1:35 pm #25374VahhabGuestJesse, The instructions worked great for me. I appreciate for the guidelines!
July 24, 2020 at 1:36 pm #25378Jesse OwensKeymasterGlad to be able to help, Vahhab. Let us know if there’s anything else we can do to help!
- AuthorPosts
- The topic ‘How to add custom phone/call icon to the social media menu?’ is closed to new replies.