WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddThis
it's not working..... (7 posts)

  1. bagopaaa
    Member
    Posted 1 year ago #

    hi.
    i got a problem.
    i've installed this pug-in. but it didn't show up..
    i can just see it via "setting/preview".

    so, i attached this code(brining your website) and it's working.

    <!-- AddThis Button BEGIN -->
    
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-514054e459a10705"></script>
    <!-- AddThis Button END -->

    but it's not standard way. also, it's no working on widget(side bar)
    what should i do?
    thanks.

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

  2. bagopaaa
    Member
    Posted 1 year ago #

  3. Srijith V
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    @bagopaaa I can see from the site that our script is not loading. Please verify whether you have activated the plugin and saved the settings. You can contact me on srijith[AT]addthis.com if you prefer me to check the settings.

  4. wellstudio
    Member
    Posted 1 year ago #

    I had a similar problem to this and I realised that it was because wp_head() was commented out in my theme header.php.

    Many plugins rely on wp_head() (and also wp_footer(), found in footer.php) to work.
    Check in your header.php for wp_head() and that it hasn't been commented out. Also check for wp_footer() in the footer.php.

    My specific problem was to do with wp_head, but this plugin may well use wp_footer too (I can't be bothered to check).
    If including wp_head causes any problems then you'll probably need to stop it loading some scripts. You can find that info on google or I could help (if I ever remember to come back to this thread).

  5. bagopaaa
    Member
    Posted 1 year ago #

    thanks for the replies!
    i'm making and editing my home. so, i can't confirm that situation, sorry.

    but i' don't understand..... what is "comment out" ?
    i found <?php wp_head(); ?> in header.php and footer.php(<?php wp_footer(); ?>)
    now, i don't know what is the next step. should i remove this code or insert another code?

  6. Srijith V
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    @bagopaa: Header and Footer loading in your theme seems to be fine. No need to change it. Let me know when it is ready to have a check in your site. Let's find out what's going wrong.

  7. wellstudio
    Member
    Posted 1 year ago #

    Yeah, sorry for confusing you.
    wp_head() and wp_footer() are two functions that wordpress uses to load plugins and other things. On some themes that I've worked with they have been removed or disabled (that's what commented out means).
    If they are disabled then wordpress will not be able to load certain plugin features (this was the problem that I had). This doesn't seem to be the issue in your case though.
    I hope this information might help anyone else that is looking for a solution though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.