In this final article in my series of social sharing, I’m going to explain how to add a LinkedIn button to your Textpattern CMS
OK, pep talk over with. Take a look at what your site is going to be like after a LinkedIn button is adorning your sidebar:
To get this natty button, you need to edit the archive page of your Hive theme. Log in to Textpattern and locate the archive page from the Presentation → Pages tab. Copy and paste it into your text editor and look for the <div role=”complementary”> tag to point out the start of the grey sidebar panel. The code for a LinkedIn button is:
<script type="IN/Share" data-url="<txp:permlink />" data-counter="right"></script>
You can dress this up a little if you wish. I chose to tack it onto an <h4> header to tell my visitors about how they can (should) share all my cool things (take the hint, readers) to their buddies. Here’s how I did it:
<p> <txp:feed_link class="feed-rss" label="RSS" /> / <txp:feed_link class="feed-atom" flavor="atom" label="Atom" /> </p> <div> <h4>Share</h4> <script type="IN/Share" data-url="<txp:permlink />" data-counter="right"></script> </div>
Thanks for reading my short series of social sharing solutions for super solid and stupendous sites. I’ve over-alliterated myself now, I must go lay down. See you again soon.