WordPress.org

Ready to get started?Download WordPress

Forums

Like buttons liking whole page instead of individual posts (2 posts)

  1. jesn24
    Member
    Posted 2 years ago #

    Hello,

    I am trying to manually put in facebook like, tweet and google plus one buttons. I have put them in my content.php theme and content-single.php.
    On the main page of my blog if you like something it will like the whole page instead of the individual post. If you like it on the post's link it will like the post as I intended it to be.

    Here is the code I am using for the buttons:
    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">



    </div>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4ff5c0d418c8201f"></script>
    <!-- AddThis Button END -->

    Is there anything I can do to the code in my content.php file to make the buttons like the individual posts instead of the whole page?

    Thanks for any help you can provide.

  2. jesn24
    Member
    Posted 2 years ago #

    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
    <a class="addthis_button_tweet"></a>
    <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
    </div>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4ff5c0d418c8201f"></script>
    <!-- AddThis Button END -->

Topic Closed

This topic has been closed to new replies.

About this Topic