• iprg

    (@iprg)


    Hi and thanks for your amazing plugin, it is clearly the most advanced one for printing and PDF creating…
    I am just wondering if there could be a way to include some custom content – it is important for me to have an information about me (in which I promote my activities), but the author box is not part of the post, so the plugin does not print it, see it on the example… Could this be solved somehow? Or can your PRO plugin do it?

    Thanks! Jan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Hi Jan,
    good question and suggestion. Yes including the author box would make sense.
    Sorry no, right now that’s not possible in the free or paid version of PMB.
    I’ve taken note of this suggestion here: https://github.com/mnelson4/printmyblog/issues/358
    If you’re handy writing HTML and CSS (or able to hire someone who is), I could provide you with a code snippet to add custom HTML and CSS to your print page. But if not, I’m afraid you’ll need to wait until I’m able to include this as part of a larger update. It will probably be several months I’m afraid.

    Does that make sense?

    Thread Starter iprg

    (@iprg)

    Dear Michael, thank you so much! Indeed, I should be able to define the box with html, or I could just do a simple paragraph to add some info… So yes, please, if there is a snippet (function), I would be much obliged for it… Thanks! Jan

    Plugin Author Michael Nelson

    (@mnelson4)

    Ok cool.
    First off, you’ll need to update to PMB 3.18.11 (just released a few minutes ago).
    Then add the following code snippet Jan to your active theme’s functions.php file.

    
    add_action('pmb_print_page_after_posts', 'mn_add_pmb_text');
    function mn_add_pmb_text(){
        require_once(get_theme_file_path('pmb_footer.html'));
    }
    

    Also, create a file named pmb_footer.html in your active theme’s base directory. The content of that file will be placed at the bottom of the print page.

    Please let me know how it goes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Including a custom content to the printed page’ is closed to new replies.