Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You can use the print CSS media query to make CSS changes to your site that will only be applied to pages being printed. You can read more about it here:
    https://www.smashingmagazine.com/2013/03/08/tips-and-tricks-for-print-style-sheets/

    You can paste your custom CSS into your theme stylesheet or in your custom CSS editor available under Appearance > Edit CSS in your dashboard.

    Since you’re sharing recipes on your site, you might also want to try the recipe shortcode that comes bundled with Jetpack: it allows you to format your recipes and add a Print button that will only print the recipe itself:
    https://en.support.wordpress.com/recipes/

    I hope this helps.

    Thread Starter CRougemont

    (@crougemont)

    Thank you Jeremy! The recipe shortcode embed is exactly what I was after. Two questions:

    1. Can I show the print button without showing any attributes (time, servings, difficulty, etc.)?

    2. How do I show the name of my site and copyright in the final printout? I know I have to put @media print in the css but beyond that, I’m lost!

    I wish I had learned something useful like html code at school! lol

    THANK YOU!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    1. Can I show the print button without showing any attributes (time, servings, difficulty, etc.)?

    Yes, if you don’t fill in the attributes in the shortcode, nothing will appear next to the Print button.

    2. How do I show the name of my site and copyright in the final printout? I know I have to put @media print in the css but beyond that, I’m lost!

    I’d suggest adding a small “Credits” or “Copyright” line at the beginning or the end of the recipe, much like we’ve done in the example here:
    https://en.support.wordpress.com/recipes/

    You can do so by just adding it as text before or after the recipe, inside the recipe shortcode.

    Thread Starter CRougemont

    (@crougemont)

    Thanks Jeremy! However, when I remove the attribute and don’t put any in, the print button disappears. I want to keep the print button option but not use any attributes. For now I am using the difficulty attribute to show print button but I’d rather no.

    Can I add a photo to the printed version?

    Good idea re: copyright. I will do that. Thank you!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    when I remove the attribute and don’t put any in, the print button disappears.

    Try adding print="true" to the shortcode, like so:

    [recipe title="Summer Pasta with Basil, Tomatoes and Cheese" print="true"]

    Can I add a photo to the printed version?

    Yes, you should be able to add an image inside the recipe shortcode.

    Thread Starter CRougemont

    (@crougemont)

    Thank you Jeremy!! You have saved me hours! Works perfectly! Would love to buy you a coffee but can’t see a PayPal link on your website. How can I buy you a coffee? ??

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’m glad to hear that works! No need to buy me coffee, if you’re happy that’s more than enough ??

    Thread Starter CRougemont

    (@crougemont)

    ?? thank you! Super happy!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Print’ is closed to new replies.