[Resolved] Create application link to Skype profile

Home Forums Support [Resolved] Create application link to Skype profile

Home Forums Support Create application link to Skype profile

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #98572
    Webmaster

    Any ideas? How would I add the below link to my WordPress Primary Menu?

    <a href="skype:profile_name?userinfo">Link to my profile</a>

    After I save, the link gets removed and I have an icon button (but no link).

    http://stackoverflow.com/questions/16177332/create-application-link-to-skype-profile?rq=1

    I thought I found a help function but when I copy / paste that chunk into the functions.php I get zilch

    #98632
    Tom
    Lead Developer
    Lead Developer

    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?

    #98661
    Webmaster

    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.

    #99256
    Webmaster

    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

    #99360
    Tom
    Lead Developer
    Lead Developer
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.