WordPress.org

Ready to get started?Download WordPress

Forums

Like
Calling Facebook Like button before post (1 post)

  1. kgagne
    Member
    Posted 3 years ago #

    On my blog, I've edited my theme to call the author image plugin via <?php the_author_image(); ?> just before the_content is called.

    I want a Facebook Like button to appear beneath the blog post's title but above the image. So far, I can't get that to work. Instead, if I set my preferences to put the button at the top of the post, I'll get the author image, the like button, and then the post content, resulting in an inelegant layout.

    Is there a way to manually call the Like button, so I can do so just before the author image? The closest I've been able to come is by changing line 148 of the Like plugin so that add_filter('the_content', 'tt_like_widget'); becomes add_filter('the_title', 'tt_like_widget');, but even that's not exactly what I want (and has many unintended side effects!).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic