WordPress.org

Support

Support » Plugins and Hacks » Print Friendly and PDF Button » [Resolved] Displays button but sends directly to printer

[Resolved] Displays button but sends directly to printer

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can I have the URL of the post you were having issue with? Also what browser/operating system are you on?

    Hi,

    I am using firefox. You can check all of teh pages on http://alphatrots.nel for instance http://alphatrots.nl/2012/12/tienduizenden-hulpen-verliezen-baan/

    Just tried with IE, same result

    firefox on ubunto, allso same result

    Plugin Author printfriendly

    @printfriendly

    The page is missing the printfriendly JavaScript. Most likely caused by the template not using the WordPress footer.php hook.

    To fix, add the javascript directly to your template.

    <script>var pfHeaderImgUrl = '';var pfHeaderTagline = '';var pfdisableClickToDel = 0;var pfDisablePDF = 0;var pfDisableEmail = 0;var pfDisablePrint = 0;var pfCustomCSS = '';var pfBtVersion='1';(function(){var js, pf;pf = document.createElement('script');pf.type = 'text/javascript';if('https:' == document.location.protocol){js='https://pf-cdn.printfriendly.com/ssl/main.js'}else{js='http://cdn.printfriendly.com/printfriendly.js'}pf.src=js;document.getElementsByTagName('head')[0].appendChild(pf)})();</script>

    Where exaclty do I put this?

    Ok, I did put the code below in my footer.php and now it works

    <?php
    /* Always have wp_footer() just before the closing </body>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to reference JavaScript files.
    */

    wp_footer();
    ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Displays button but sends directly to printer’ is closed to new replies.
Skip to toolbar