WordPress.org

Ready to get started?Download WordPress

Forums

Print Friendly and PDF Button
[resolved] Custom Footer (16 posts)

  1. LisaNelsonRD
    Member
    Posted 1 year ago #

    Is there a way to set it so a custom footer prints on every page? I have a health web site and want the disclaimer to print with all information.

    http://www.karencollinsnutrition.com/smartbytes

    Thank you!

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

  2. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Lisa,

    Sorry for the late response, I wasn't receiving the alerts to for new forum posts.

    You can include a custom header and custom message seen at the bottom of print-out (not on every page).

    Here's an article showing how to include a custom "Footer" in your print/pdf page.

  3. LisaNelsonRD
    Member
    Posted 1 year ago #

    Thank you! I was able to get that to work. Two more questions:

    1. Can it be set to only allow pdf printing?

    2. Can it be set to display a logo at the top of every printed page?

    Thank you!

  4. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    PDF only is not an option. Perhaps in the future.

    The Logo only appears at the top of the first printed page. Will definitely keep this in mind for the future though.

  5. LisaNelsonRD
    Member
    Posted 1 year ago #

    I'm not seeing the logo at all. Not even on the first page. Is there a setting I need to adjust? I see the favicon and page url?

    I re-activated the plugin so you can see what I mean - http://www.karencollinsnutrition.com/smartbytes/2012/10/23/video-interview-is-eating-less-really-key-to-weight-loss/

  6. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, the custom header requires the JavaScript option. Can you change the PrintFriendly Plugin Settings to allow the JavaScript?

  7. LisaNelsonRD
    Member
    Posted 1 year ago #

    Perfect - thank you!

  8. Koschitzki
    Member
    Posted 1 year ago #

    Dear PrintFriendly,

    I would like to add the footer as well, as you described. But I want to insert it in every post automatically. I tried to put your code into the single.php of my theme, but it seems that printfriendly works around the theme anyway. Do you have any idea how I could implement that?

  9. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    Within the single.php page add the custom footer directly below <?php the_content(); ?>

    Single.php

    <?php the_content(); ?>
    <p class="print-footer" style="display:none">
        <img src="/mylogo.png">This is my tagline
    </p>
  10. Koschitzki
    Member
    Posted 1 year ago #

    It works fine thanks! Last time I didn't have the class "print-footer" in it!

  11. alainwoll
    Member
    Posted 1 year ago #

    Hello
    Great tool. This will be the top if there is a possibility to not print some text with shortcode or otherwise ..
    Thank you for your reply. Cordially

  12. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    You can remove any element from the print/pdf by adding class="print-no".

    Example:

    <p class="print-no">Will not be printed/pdf</p>
    
    <img class="print-no" src="http...">

    Here's a list of all custom Print Friendly & PDF commands. http://support.printfriendly.com/customer/portal/articles/526027-class-id-names-to-customize-printfriendly-content-features

  13. 14nc310t
    Member
    Posted 1 year ago #

    I don't like to modify the single.php to include a custom footer, just as any other personalization to the WP core.

    Is there a way to avoid it modifying the custom css (sorry for the newbie question)?

    In the future releases, would be nice to have an option box to do it.
    TIA

  14. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    @14nc310t I'm not sure I follow. Do you have the URL to a page I can observe?

  15. 14nc310t
    Member
    Posted 1 year ago #

    Shure, the page is: Click here

    The button is only on the posts page.

    In other words I would like to avoid any modifications to wp files (in case of WP upgrading I should propagate the modifications to the new release).
    If it's possible, I would like to insert the custom footer code in the custom css or, better, have a PrintFriendly box option to do it :)

    TIA for your great work!

  16. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    @14nc310t

    Excellent idea. If you you use the Custom CSS feature, you could include the following in your CSS file.

    @media print {
      #pf-print-area:after{
       content:"This is my footer";
       position: absolute;
       bottom: 0;
      }
     } ‚Äč

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags