Add Skype link in WordPress

Banner for tutorial on how to add Skype links in WordPress.

Be able to add a Skype link in WordPress allows to open up the Skype application on a device and immediately start the call.

Because Skype is one of the popular mediums of communication on the web, having the link that launches the app when clicked, can improve interaction between you and your site visitors.

In this article, you will learn how to create a Skype call link in your WordPress website.

Add links in WordPress

The process of adding Skype links is similar to regular links. 

No matter if you add links to content area, or want to add links to menu in your WordPress site. The steps are the same.

The only difference is the format of your link.

Skype hyperlink format

Skype has its own URI scheme which allows to interact with the Skype app during the click.

Here is an example of a Skype link:

skype:echo123?call

This is an example of a link to call a Skype user with the username “echo123”.

However, there are other types of links you can create with Skype.

Callskype:username?call
Addskype:username?add
Chatskype:username?chat
Leave voicemailskype:username?voicemail
Send fileskype:username?sendfile
View profileskype:username?userinfo

Add Skype link to content

The Skype link looks exactly like a regular link in a content, but with one difference — visitors can contact you via Skype when the link is clicked.

To add one of these Skype links to your site:

  1. Highlight the text you want to link.
  2. Click the Link icon.
  3. Enter your Skype link inside the address bar.
  4. Click the Apply button when you are ready.
Preview of the process of adding a Skype link, using the Block editor.

Add Skype link to menu

In WordPress, you can create a menu link to give the visitors of your site to establish a Skype call within the menu section.

Usually, you can do the following steps to add Skype links to your menu:

  1. Navigate to Appearance → Customize to open the Customizer.
  2. Click Menus link to open the Menus panel.
  3. Select menu where you want to have a Skype link.
  4. Click the Add Items button to open Custom Links options.
  5. Create a Skype link and add to menu.
  6. Publish your changes.

However, adding Skype links to a WordPress menu can be problematic sometimes.

Issue

When you try to save your custom URL with a Skype link in a WordPress menu, you might get an error message, which will prevent you from saving the changes.

This issue happens because a WordPress core rejects URLs whose protocols aren’t allowed. By default, the Skype protocol is considered as an invalid protocol.

Preview of a Skype link issue in menu section.

Solution

A WordPress core comes with a special filter, which allows to modify a list of whitelisted protocol.

Using kses_allowed_protocols filter, it is possible to add a Skype protocol to the list of allowed protocols.

To solve the Skype link issue, add custom code snippet to your site:

/**
 * Allow Skype protocol in links.
 *
 * @param array $protocols List of allowed protocols.
 * @return array
 */
function themesharbor_allow_skype_protocol( $protocols ){
    $protocols[] = 'skype';
    return $protocols;
}
add_filter( 'kses_allowed_protocols', 'themesharbor_allow_skype_protocol' );

After that, you should be able to add Skype links to your menu.

Create button with Skype link

You can also create a button, for instance “Schedule a Call”, to allow visitors call you using that special button.

To create a button with a link to Skype:

  1. Add the Button block.
  2. Click the Link icon.
  3. Enter your Skype link inside the address bar.
  4. Click the Apply button when you are ready.
Preview of the process of adding a Skype link to a button, using the Block editor.

Conclusion

WordPress, in combination with a professional theme, can highly improve your business. Especially, when your website is well structured.

Skype links may be beneficial to boost your leads since offering different ways of communication further engages customers.

I appreciate your time reading this tutorial on how to add Skype links in WordPress. Hopefully, it was useful for you.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.