WordPress.org

Ready to get started?Download WordPress

Forums

AddThis bar to content-blog.php (4 posts)

  1. pmonty
    Member
    Posted 1 year ago #

    I am trying to add a small bar mainly the facebook and twitter sharing icons only (possibly google+ and pinterest later on) to my main blog pages.

    Demo page of theme i am using

    So that is the demo fo the theme i am using. And for certain types of posts, i have edited so instead of time and comments in the meta section below each post i have tags and social sharing. But the social sharing i have done in the past from sites like addthis would only share the first post properly then the rest not properly at all.

    So now i have installed the actual plugin created an account got the id and all the rest of it. But not sure how to do this manually.

    After some research looks like this link MIGHT be helpful
    AddThis Support Information

    If anyone has any tips or experience with this sort of thing would be great!!!!! :)

  2. pmonty
    Member
    Posted 1 year ago #

    Will i still be able to have it load using ajax like it does instead of having to implement a navigation?

  3. pmonty
    Member
    Posted 1 year ago #

    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_preferred_2"></a>
    </div>

    Thats what i have tried to add to the content-blog page. But it doesnt share the right stuff. Couldit be because the JS is being duplicated? If so how to work around this?

  4. pmonty
    Member
    Posted 1 year ago #

    <div class="addthis_toolbox addthis_default_style "
    addthis:url="<?php the_permalink(); ?>">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_preferred_2"></a>
    </div>
    </div>

    Used the_permalink()

    it works as it says the link now but the right content/text is not being shared.

Topic Closed

This topic has been closed to new replies.

About this Topic