Print post

  • Oliver

    #7509

    Hi all

    About the “build in” print function in Graphene, I cannot get it to work the way I want.

    Example: print specific post,

    only the articles, not the hole website.

    and bigger letters.

    Therefore I have used the plug-in “print me” which is very simply to use.

    Is it possible, using graphene aktionhooks to insert the Short code: [printme] on the post that I want?

    If yes, how do I do it? 😉

    I have tried, but failed : /

    I know how to insert [printme] in the actionhooks, but the function print, does not appear, and work! It only shows the letters [printme] ?

    I know I can insert Short code manually on every post 🙂 But…..

    Thank you in advance

    Best regards

    Oliver

    http://minmadopskrift.dk/

    Mod

    Kenneth John Odle

    #38473

    If you are handy with CSS, you can design your own print stylesheet. Place that file in your child theme file and then add this to your child theme’s functions.php file:

    add_action ('wp_head', 'printstyle' );
    function printstyle() {
    echo "<link rel='stylesheet' href='print.css' type='text/css' media='print' />";
    }

    Quote:
    Example: print specific post,

    only the articles, not the hole website.

    and bigger letters.

    I’m not sure what you mean here.

    Oliver

    #38474

    Hi

    Do you want me to put the code:

    add_action ('wp_head', 'printstyle' );
    function printstyle() {
    echo "<link rel='stylesheet' href='print.css' type='text/css' media='print' />";
    }

    in my child theme’s functions.php file:

    and style.css?

    or print.css?

    Prasanna SP

    #38475

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard.

    Oliver

    #38476

    Is it possible to be more specific, in how to do?

    I have look at this guide

    http://codex.wordpress.org/Styling_for_Print

    sanuja.com

    #38477

    I think Ken’s way is the best way to do it. Yes, you can enter his code in the Child Theme functions.php

    You need to create a separate print CSS with his code….

    add_action ('wp_head', 'printstyle' );
    function printstyle() {
    echo "<link rel='stylesheet' href='YOUR_PRINT.CSS' type='text/css' media='print' />";
    }

    The YOUR_PRINT.CSS will be the location of your new print CSS file.

    Is this make it clear for you?

    There are more things you can do with CSS like, http://sanuja.com/blog/optimizing-print-friendly-version , which is hiding the print button from specific pages.

    You can hide the print button in many ways. Also, I cannot seems to load your website from here (Canada).

    Note: Ken, can I steal your code and added to my how to style Graphene print article?

    Mod

    Kenneth John Odle

    #38478
    Quote:
    Note: Ken, can I steal your code and added to my how to style Graphene print article?

    Of course.

    sanuja.com

    #38479
    Quote:
    Note: Ken, can I steal your code and added to my how to style Graphene print article?

    Of course.

    Thank you. You seems to use http://blog.kjodle.net/ a lot more than your main site. So, I gave credits with the link to http://blog.kjodle.net/

    If you would like to change it to your main site instead, please let me know. Thank you again. 🙂

    Oliver

    #38480

    Thank you all

    I will look at your answers as soon as possible.

    Unfortunately, I got a White FrontPage, so I have to restore my page first.

    Mod

    Kenneth John Odle

    #38481

    If it helps you out any, you can see my print stylesheet here:

    http://blog.kjodle.net/wp-content/themes/graphene-stonesinwater/print.css

    You can view the entire contents of my child theme here:

    http://blog.kjodle.net/wp-content/themes/graphene-stonesinwater/

Viewing 10 posts - 1 through 10 (of 15 total)

You must be logged in to reply to this topic.