bloggingehow

Add Twitter Follow/Facebook Like Button Beside Each Author's Post

One of our blog commentator asked for a trick where we could add the Twitter Follow button right...

social media author name blogger
One of our blog commentator asked for a trick where we could add the Twitter Follow button right next to the authors name, below post title. This trick works great on multi author blogs which would show up follow button of the respective author who posted the article.

For this purpose, we would use the same conditional tag that we used for Multi-author bio box.



You may like to read that first:

So lets start our work and follow the steps below.

twitter follow button


Step #1 Go To Blogger Edit HTML


Go to Design >> Edit HTML and tick the check box. Now search for the following code. Note that you could add the following code any where in the post body area but our aim is to show up the Twitter follow button / Facebook Like button of the particular author right next to their name (after the post title).

So thats what we are going to achieve.

Search for :

<div class='post-header-line-1'>
Now once you found the above code, notice the code related to author (something like meta author). You got to paste the below code right next to author's name code.

You can experiment with the positioning of the Follow/Like buttons though.


<b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:if cond='data:post.author == &quot;Author2Name&quot;'>
Facebook Like button Code/ Twitter Follow Button Code For Author 1</b:if>
<b:if cond='data:post.author == &quot;Author2Name&quot;'>
Facebook Like button Code/ Twitter Follow Button Code For Author 2</b:if>
</b:if>

How It Works?


You simply added the Authors Social media buttons in their respective conditional tags so that each Follow button would only show up if the post is written by the certain author. Hope it helped and would love to see you comments/Feedback in the comment section below.

You may now like to read:




Twitter Tutorials 7586282529520822204

Start your blog today!

9000 Followers!

Yours FREE!

The Odd and easy ways how I made 1000$ / Month blog in under 6 Months! YOU can TOO!

casestudy-png
Arrow

.

Name

Email *

Message *

item