MEET SITKA | A super-customizable modern WP theme!

Okay
  Print

Add LinkedIn social share button to Rosemary

Beneath your posts are a variety of social share icons. These icons differ from those in your top-bar area in that, when clicked, they will open up that social network's share platform so that visitors can share your content on their social media accounts. 

To add a "LinkedIn" icon to your post social share icons, you can follow these steps:

Navigate to WP Dashboard > Appearance > Editor > and open up the "content.php" file. On lines 118-127, you will see a block of code related to the share icons.

On line 127, you'll see the code for the Google Plus social network. 

Create a new blank line BELOW this Google Plus code. On this blank line, paste in the following:

<a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>"><i class="fa fa-linkedin"></i></a>

When finished, it will look like:

Save changes to the file. 

If you'd also like to add the LinkedIn social share icon to your pages as well, navigate to WP Dashboard > Appearance > Editor > and open up "content-page.php". Again, on line 34, you'll see the code for the Google Plus social network. Create a new blank line beneath the Google Plus code and paste in the following:

<a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>"><i class="fa fa-linkedin"></i></a>

Save changes when finished.