For example, for Facebook we need to add Open Graph meta tags. This information has to be set for each post, by inserting meta tags in the header. open the page or database from the second account (the one. In this case, you have to set an image as the default image which will be shared. Source: LinkedIn Share Documentation: Making Your Website Shareable on LinkedIn. I made a chrome extension to add Linkedin Contacts to Notion. The problem arises when there are multiple images. For example, if your post has a single image, it will be shared along with post. This image is picked up from the content being shared. png file extension, 128, 623 POP (Post Office Protocol) about. Sites like Facebook or linkedin, display an image along with the shared content. See editing graphics and pictures Picture Options dialog box, 326327 pictures. We need to set a few meta tags, to ensure that the needed content is shared. The above codes will add the links, for social networking sites. &title=&summary=&source=” target=’_blank’> $description = wdm_custom_excerpt( $post->post_content, $post->post_excerpt ) the description will be either the post excerpt if present, or part of the post content For those of you, wanting to create your own plugin, you would need to place the below code in your plugin file, on a particular hook.įor the sake of an example, I will explain the display Facebook, twitter, linkedin and Google+ sharing links. Thus the below placed code was part of single.php file of the theme. Do note, that you can use the code to create a custom plugin as well.įor this requirement, I had to place the icons, on every post. You will need to place the code in your theme’s functions.php. I will be explaining to you, the way this feature will work along with the code. Use LinkedIn Plugins LinkedIn Help Use LinkedIn Plugins Last updated: NovemPlugins are a quick way to incorporate LinkedIn functionalities into your site. The change should be in the way the social media sharing links behave. The same code placed in a theme or a plugin, would have the same impact. If you’re thinking that having the social media sharing feature in your theme can immediately reverse the effects of using a bad plugin, you’re certainly wrong. This again involves an additional check and is time consuming.Īll this increases the loading time of each page, and negatively affects your site’s SEO. For example, if a person visiting your site, has already (Facebook) liked a page, and is currently logged into his Facebook account as well, the status of the share button should be ‘You like this’ (or something on similar lines). Some social media sharing plugins, update the status of the sharing link, if a visitor is already logged in to any of the sites.Some plugins make this check every time a page is loaded. For this it has to make calls using JavaScript, between your site and the social networking sites. If your plugin has to display a live count of the number of likes or shares, it has to fetch the data from each social networking site, and display it along with the link.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |