Print Friendly and PDF Button
[resolved] Displays button but sends directly to printer (8 posts)

  1. berendraap
    Posted 3 years ago #

    After installing Print Friendy the content of my page is sent direclty to my printer in a "non friendly" lay-out. (The printer dialogue box opens) When I copy and paste the url for the button I am directed to the printfriendly.com page and the text show up just print friendly.


  2. aisajib
    Posted 3 years ago #

    Can I have the URL of the post you were having issue with? Also what browser/operating system are you on?

  3. berendraap
    Posted 3 years ago #


    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/

  4. berendraap
    Posted 3 years ago #

    Just tried with IE, same result

  5. berendraap
    Posted 3 years ago #

    firefox on ubunto, allso same result

  6. printfriendly
    Plugin Author

    Posted 3 years ago #

    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>

  7. berendraap
    Posted 3 years ago #

    Where exaclty do I put this?

  8. berendraap
    Posted 3 years ago #

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

    /* 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Print Friendly and PDF Button
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.