Recently, while i was working for one of my clients website, there was an issue which i saw in the Jetpack Advance Widget called Social Media Icons.

The issue was that jetpack developers has hardcoded www.linkedin.com/in in the code and due to this if any company url doesn’t have /in in their linkedin profile, it was resulting in wrong links. Like for example my clients linkedin official link was https://www.linkedin.com/company/vane-airport/ but when i was entering username, due to hardcoded code it was coming out as https://www.linkedin.com/in/company/vane-airport/ and was a big issue.

So, in order to fix this, open jetpack using any file editor and then look into directory widgets which is located at

\jetpack\modules\widgets

and under widgets open the file called social-media-icons.php and on line 70 remove /in and save the file.

        $this->services = array(
'facebook'   => array( 'Facebook', 'https://www.facebook.com/%s/' ),
'twitter'    => array( 'Twitter', 'https://twitter.com/%s/' ),
'instagram'  => array( 'Instagram', 'https://instagram.com/%s/' ),
'pinterest'  => array( 'Pinterest', 'https://www.pinterest.com/%s/' ),
'linkedin'   => array( 'LinkedIn', 'https://www.linkedin.com/in/%s/' ),
'github'     => array( 'GitHub', 'https://github.com/%s/' ),
'youtube'    => array( 'YouTube', 'https://www.youtube.com/%s/' ),
'vimeo'      => array( 'Vimeo', 'https://vimeo.com/%s/' ),
'googleplus' => array( 'Google+', 'https://plus.google.com/u/0/%s/' ),
'flickr'     => array( 'Flickr', 'https://www.flickr.com/photos/%s/' ),
'wordpress'  => array( 'WordPress.org', 'https://profiles.wordpress.org/%s/' ),
'twitch'     => array( 'Twitch', 'https://www.twitch.tv/%s/' ),
'tumblr'     => array( 'Tumblr', 'https://%s.tumblr.com' ),
); 

This will fix the issue.

Cheers

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •