WordPress.org

Ready to get started?Download WordPress

Forums

Flattr
Button not showing up (4 posts)

  1. Henrik Schack
    Member
    Posted 2 years ago #

    Hmm there is no way I can make this plugin show the Flattr button.
    Does anyone have a step-by-step setup guide for dummies please ?

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

  2. Corelgott
    Member
    Posted 2 years ago #

    I am not a 100% sure if this is the same problem but...

    The dynamic button isn't showing up in my posts (There is a div with a link, but its display:none;)

    If I set the button-type to static button everything works fine. I suspect, that the plugin's js is not imported into the theme. But up to now I had no time to confirm this.

  3. VoxPelli
    Member
    Plugin Author

    Posted 2 years ago #

    @Corelgott: Your theme needs to include the wp_footer() method to have the javascript printed as it's for performance reasons included at the end of the page. The included script should then look like:

    <script type="text/javascript">
      (function() {
        var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
        t.parentNode.insertBefore(s, t);
      })();
    </script>
  4. AHSC
    Member
    Posted 2 years ago #

    Mine's not showing up either and the script is there, however it's only an issue with firefox it seems?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags