Button or code at end of post before comments
  • mtnweeklymtnweekly August 2011

    Is it possible to add

    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=230557780316625&amp;xfbml=1"></script><fb:like href="" send="false" width="450" show_faces="false" font=""></fb:like>


    to show the facebook button at the very end of the blog post. Before the comments?

  • cbavotacbavota August 2011

    There are plugins that can do this automatically for you. No need to modify the code. But if you wanted to all you need to do is add the code to the loop.php file but make sure to surround it with a conditional tag so it only appears on single posts.

    http://codex.wordpress.org/Conditional_Tags

  • mtnweeklymtnweekly August 2011

    Thanks for the reply, I was able to add it to the loop.php without using the conditional tag. Looks good at http://mtnweekly.com Are you really suggesting people add more plugins? I thought the idea was less is more?

  • cbavotacbavota August 2011

    Some people are not comfortable with manually changing the code so that is why I suggest using the plugin.

  • mtnweeklymtnweekly February 3

    Any plugin you recommend?

  • cbavotacbavota February 5

    I don't really use plugins for this sort of thing so I suggest reading up on the topic and looking into the votes in the plugin directory to see which might be best.

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged