WordPress.org

Forums

Smart Website Tools by AddThis
[resolved] Insert manually (7 posts)

  1. Manuel5cc
    Member
    Posted 2 years ago #

    My actual theme seems to not support automatically addthis. How do I insert it into the code of my blog?

    http://wordpress.org/extend/plugins/addthis/

  2. Srijith V
    AddThis Samurai
    Plugin Author

    Posted 2 years ago #

    Can you share the theme name or your site url? I will help you.

  3. Ibnul H.
    Member
    Posted 2 years ago #

    I am using a custom theme.
    And need to add the buttons in one templete file.
    Would you please let me know if there is any way to add in the template files?

    Is there any template tag or short code?

    Any help would be appreciated.

    Thanks

  4. cain
    Member
    Posted 2 years ago #

    I used the following in my page templates

    <?php $addme = get_post_custom($post->ID); $addmeok = $addme['addthis_exclude']; ?>
    
    <?php if ( $addmeok == false ) { 		do_action('addthis_widget',get_permalink($post->ID), get_the_title($post->ID), 'fb_tw_p1_sc'); }else{}?>

    This allows you to continue to use the 'Remove AddThis' meta box in each page which turns the share buttons off and on.

  5. Ibnul H.
    Member
    Posted 2 years ago #

    It works. Thanks in advance for the help. :)

  6. Srijith V
    AddThis Samurai
    Plugin Author

    Posted 2 years ago #

    Thanks @ibautista. That's a smart work around.

    @Ibnul: If you don't want to have the exclude feature, you can just use:

    <?php do_action('addthis_widget',get_permalink($post->ID), get_the_title($post->ID), 'fb_tw_p1_sc'); ?>

    Otherwise, what @ibautista suggested is the ideal one.

  7. Ibnul H.
    Member
    Posted 2 years ago #

    @srijith.v

    Thanks for the quick response.
    Got solved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Smart Website Tools by AddThis
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.