LinkedIn icon for social media menu
-
AuthorPosts
-
pauloaten
MemberHi Tom,
any chance of being able to add an icon for LinkedIn to the social media menu?
The blog I need help with is: (visible only to logged in users)
tmcfarlin4
MemberHey Paul,
Thanks so much for including a link to your site – it always helps in looking into support options :).
That’s a good idea – I’ve not had that request yet, but I’ll create a ticket for it and see if I can’t have it ready for the next release.
One question I have (because I personally don’t use LinkedIn): Is the best way to access one’s profile through a URL or through a username?
By that, I mean would you provide a URL to your profile like with Google+ or just a username like with Twitter?
Let me know – this will help me to build the feature!
Don’t hesitate to shoot me any more questions!
Hey Tom,
thanks for getting back to me.
I think it would have to be a URL. Like Facebook/Google+, LinkedIn has vanity URLs but not everyone uses them.My URL is: https://www.linkedin.com/in/pauloaten
This jumps the user to a public profile page. From there, if they have a LinkedIn account, they can log in and view the full profile.
I had another question about the ’email’ field. (I can open a new ticket if you like). Anyways, the reason I haven’t filled it out is that it isn’t obfuscated and I don’t want an inbox full of spam.
I recently played with a function which uses the WordPress built in antispambot() function to achieve this on a self-hosted site I’m building for a client (see: http://181.224.135.99/~panary33/contact-us/) and it works pretty well.
Just thought it might be worth building that in too?
here’s the Gist I used:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** * Hides email addresses from spam bot. * * @param array $atts The various options. The only required option is "address". * @example [email address="name@example.com"] */ function ubnsc_email( $atts ) { extract( shortcode_atts( array( 'type' => 'email', 'address' => '', 'class' => '', 'subject' => '', 'text' => '', ), $atts ) ); switch ( $type ) { case 'email' : $protocol = 'mailto:'; break; case 'jabber' : $protocol = 'xmpp:'; break; } if ( $class ) $css = 'class="' . esc_attr( $class ) . '" '; if ( $subject ) $subject = '?subject=' . esc_attr( $subject ); if ( $text == '' ) $text = antispambot( $address ); $output = '<a ' . $css . 'href="' . $protocol . antispambot( $address, 1 ) . $subject . '">' . $text . '</a>'; return $output; } add_shortcode('email', 'ubnsc_email'); /** * Hides email addresses from spam bot. * * @param array $atts The various options. The only required option is "address". * @example [email address="(email visible only to moderators and staff)"] */ function ubnsc_email( $atts ) { extract( shortcode_atts( array( 'type' => 'email', 'address' => '', 'class' => '', 'subject' => '', 'text' => '', ), $atts ) ); switch ( $type ) { case 'email' : $protocol = 'mailto:'; break; case 'jabber' : $protocol = 'xmpp:'; break; } if ( $class ) $css = 'class="' . esc_attr( $class ) . '" '; if ( $subject ) $subject = '?subject=' . esc_attr( $subject ); if ( $text == '' ) $text = antispambot( $address ); $output = '<a ' . $css . 'href="' . $protocol . antispambot( $address, 1 ) . $subject . '">' . $text . '</a>'; return $output; } add_shortcode('email', 'ubnsc_email');
tmcfarlin4
MemberNo worries on combining multiple tickets into this thread.
First, as far as linked in is concerned, thank you for that information. I’ll look to have this patched in the next version which I’ll aim to have out in two weeks at the latest (there’s a couple of other things I’m working on for Mayer in the meantime, but I want to get this into the next release!).
Secondly, for the email, thanks for providing me with how you use it. Figuring out how to best allow that has been tough – believe it or not – because some people want to use their email addy, some want a contact page, and so on.
The short answer is that this is something I’ll gladly look into. There are some validation points on my end I need to consider, so I can’t promise anything yet but I will be looking into this for the next release, as well.
Thanks for your patience, and for giving such complete questions with respect to the support issues. It really makes working to improve Mayer much easier :).
No probs Tom.
To be honest, just a link to the contact form page with a nice email icon next to it would do for me instead of an actual (obfuscated) email address :)tmcfarlin4
MemberPaul,
Got it – just added this to a ticket for an upcoming release and I’ll have this taken care of soon.
As usual, the updates will roll out automatically.
Thanks for providing me with this info!
tmcfarlin4
MemberI’ve just updated the theme that should update within the next day or two which includes LinkedIn support, the ability to link the email icon to a page (rather than just an email address), and a few other things.
cheers Tom – all working well. Thx for the update.
- The topic ‘LinkedIn icon for social media menu’ is closed to new replies.