The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Print Friendly and PDF Button
Images and printing pop-up not in HTTPS (4 posts)

  1. NWTD
    Posted 4 years ago #

    I'm using this plugin for my clients to print their invoices from our site. However, since I'm using https on these invoice pages, the print buttons do not show up and I have to manually upload them and point to them in the settings. Secondly, when you click print, we're not getting the neat print pop up that allows the users to remove items they don't want.

    This only happens on pages that are https, all the other pages work fine.

    Any help would be greatly appreciated.


  2. printfriendly
    Plugin Author

    Posted 4 years ago #

    Sounds like the JavaScript isn't being included. You could use the "general website print/pdf button".

    Or add this JavaScript to your page template.
    <script src="http://cdn.printfriendly.com/printfriendly.js" type="text/javascript"></script>

    And ensure the button link has onclick="window.print(); return false;"

    <a href="#" onclick="window.print(); return false;">

  3. NWTD
    Posted 4 years ago #

    I manually added the javascript to my template. the <a href="#" onclick="window.print(); return false;"> is included already.

    if it would help, here's a link to an example:

  4. printfriendly
    Plugin Author

    Posted 4 years ago #

    Thanks for link. I see you are using https.

    Best way forward is to manually add https button.

    Step 1: Remove plugin and script tag

    Step 2: Add this code snippet direct to template file

    <script src="https://d75j4zx85lgxs.cloudfront.net/printfriendly.js" type="text/javascript"></script><a href="http://www.printfriendly.com" style=" color:#6D9F00; text-decoration:none;" class="printfriendly" onclick="window.print(); return false;" title="Printer Friendly and PDF"><img style="border:none;" src="https://nwtechanddesign.com/wp-content/themes/northwesttech/images/pf-print-icon.gif" alt="Print Friendly and PDF"/></a>

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