Site logo

Archived topic

Create application link to Skype profile

4 replies · Started by Webmaster on April 14, 2015

Viewing posts 1–5 of 5

Hmm, I looked into this a bit and the only function I found was the one you linked to.

From looking at it, it definitely looks like it should work.

What happens to the link when you add it while that function is active in your child theme? Anything at all?

It just doesn't work when I copy / paste that snippet into my child function.php

Hmm...I'll just ask my brother, I know this doesn't really fall under theme support but more of a WordPress thing. Once I find the answer, I'll post the reply.

I just tried to copy / paste the plugin from WordPress.org repo and still no results.

https://wordpress.org/plugins/vihv-skype-and-callto-links/

This was the function:

function vihv_skype_callto_links($protocols) {
	if(!empty($protocols)) {
		$protocols[] = 'skype';
		$protocols[] = 'callto';
		$protocols[] = 'tel';
	}
	return $protocols;
}

add_filter('kses_allowed_protocols', 'vihv_skype_callto_links');

It appears as if the WordPress menu manager module just refuses to show love towards Skype. I'm going to dig deeper into this tomorrow. Enjoy your evening.

Here is a patch, editing generatepress/inc/navigation.php

On line #98 in the item wrap I added

<li><a href="skype:user_profile?userinfo"><i class="fa fa-skype"></i></a></li> before the %3 parameter. A cleaner alternative is to create a custom nav walker. A negative is after each theme update I'll have to update this file.

If you have any suggestions, just let me know.

http://codex.wordpress.org/Function_Reference/wp_nav_menu

This archived topic is closed to new replies.