Printer Friendly Version

by 4 replies
5
Hi,

how can I make Wordpress offer a printer friendly version of a page/post?

Thx

Dan
#website design #friendly #printer #version
  • With WordPress it is very easy to accomplish as there are several plugins available to do just that. Here's a good one http://wordpress.org/plugins/printfriendly/

    Regards,

    Andre Foisy
    • [ 1 ] Thanks
  • Banned
    To install WP-Print, you need to download it, and then activate it.

    Once done, you would need to regenerate your permalinks. You can do this by going to:
    WP-Admin > Settings > Permalinks > Save Changes

    You do not need to make any changes, but you must hit the save button.

    Once that is done, you may go to your themes folder:
    /wp-content/themes/Yourthemename/

    And you must place the plugin code in the files of your choosing, it can be: single.php, page.php, post.php, loop.php.
    You need to find this code:
    <?php while (have_posts()) : the_post(); ?>

    Paste the following code in the loop:
    <?php if(function_exists('wp_print')) { print_link(); } ?>

    This will display a Print option to all your posts and pages if you add it.
    • [ 1 ] Thanks
  • THx Andre, thx Lucila, very helpful!! and much appreciated

    Dan
  • Hi Dan, another option you may want to consider (one that's very easy on your users) is to provide a print specific stylesheet.

    It basically a tiny linked .css file that you add to your header.php

    Its purpose is to reset your site layout (only when its printed) so that its "printer friendly" without requiring the user to click a "printer friendly" link and without requiring you to install special software to handle printing of your site.

    Here's an excellent article on it from our friends over at ALA:

    http://alistapart.com/article/goingtoprint/

Next Topics on Trending Feed