Printer Friendly Version

4 replies
  • |

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


#friendly #printer #version
  • Profile picture of the author NetMan
    Originally Posted by skywalker89 View Post


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


    With WordPress it is very easy to accomplish as there are several plugins available to do just that. Here's a good one


    Andre Foisy
    {{ DiscussionBoard.errors[8217584].message }}
  • Profile picture of the author lucila
    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:

    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.
    {{ DiscussionBoard.errors[8219610].message }}
  • Profile picture of the author skywalker89
    THx Andre, thx Lucila, very helpful!! and much appreciated

    the answer to all: 42
    {{ DiscussionBoard.errors[8224315].message }}
  • Profile picture of the author clickbump
    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:
    {{ DiscussionBoard.errors[8225989].message }}

Trending Topics