Usage Instructions
Open wp-content/themes/
Find:
|
1 2 3 |
<?php while (have_posts()) : the_post(); ?>
|
Add Anywhere Below It:
|
1 2 3 |
<?php if(function_exists('wp_print')) { print_link(); } ?>
|
If you DO NOT want the print link to appear in every post/page, DO NOT use the code above. Just type in:
|
1 |
[print_link] |
into the selected post/page content and it will embed the print link into that post/page only.
The first value is the text for printing post.
The second value is the text for printing page.
Default: print_link(”, ”)
Alternatively, you can set the text in ‘WP-Admin -> Settings -> Print’.
Go to ‘WP-Admin -> Settings -> Print’ to configure the style of the print text link.
If you do not want to print a portion of your post’s content, do the following:
|
1 |
[donotprint]Text within this tag will not be displayed when printing[/donotprint] |
The text within donotprint tags will not be displayed when you are viewing a printer friendly version of a post or page.
WP-Print will load ‘print-css.css’, ‘print-posts.php’ and ‘print-comments.php’ from your theme’s directory if it exists. If it doesn’t exists, it will just load the respective default file that comes with WP-Print. This will allow you to upgrade WP-Print without worrying about overwriting your printing styles or templates that you have created.