WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. NWTD
    Member
    Posted 2 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.

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

  2. printfriendly
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 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:
    https://nwtechanddesign.com/services/invoices/?invoice_id=286d451476969deaf6e7f9b6eeef3fdf

  4. printfriendly
    Member
    Plugin Author

    Posted 2 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

About this Topic