WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. berendraap
    Member
    Posted 1 year 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.

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

  2. aisajib
    Member
    Posted 1 year ago #

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

  3. berendraap
    Member
    Posted 1 year ago #

    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/

  4. berendraap
    Member
    Posted 1 year ago #

    Just tried with IE, same result

  5. berendraap
    Member
    Posted 1 year ago #

    firefox on ubunto, allso same result

  6. printfriendly
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Where exaclty do I put this?

  8. berendraap
    Member
    Posted 1 year ago #

    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();
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.