Jump to content
Sign in to follow this  
jariail

Preferred print plugin?

Recommended Posts

jariail

New to WordPress, have set up WhiteHouse Pro theme site. Need to install a "pretty print" plug-in to keep my customer happy. Any recommendations for a certain plug-in that would work well with WhiteHouse Pro? I've tried several that seem to send off the text to another site for re-formatting, but my customer doesn't want that. I need something that reformats the text on the spot.

Share this post


Link to post
Share on other sites
goodwinwapcssorg

Not sure if this will help, but here's how I got a print friendly version in WHP3. However, it can be risky to edit the template files. 1. I created a text file and named it print.css with the following code and uploaded it to the whitehousepro theme folder:

	/* Print Style Sheet */
	@media print {
	body { background:white; color:black; margin:0 }
	}
	#header, #sidebar,#nav, #subnav, #morefoot, #fcolumns_container,#respond, #post-nav fix, #feature, .fboxes, #footer_topline, #comments {display: none;
	}
	
2. I then put the following code in the header.php file just before the closing head tag to link the file.
	<link rel="stylesheet" type="text/css" media="print"
	href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />
	
3. I then put the following java in the _posts.php file after this line:
<?php edit_post_link(__('Edit',TDOMAIN), '<p>', '</p>'); ?>
and here's the java:
	Print
	[/code]

You can edit the print.css to add/remove the parts of the page you don't want in the printer friendly version. This seems to be working for me (so far) but I have my fingers crossed. It's easy to break stuff when changing the template files so you have to be careful. WG

Share this post


Link to post
Share on other sites
goodwinwapcssorg

Sorry, here's the java again:

	
	Print
	
	[/code]

Share this post


Link to post
Share on other sites
goodwinwapcssorg

Okay, that didn't work. One more try:

Print[/code]

Share this post


Link to post
Share on other sites
goodwinwapcssorg

That didn't work either. How about inside quotes:

Share this post


Link to post
Share on other sites
goodwinwapcssorg

None of that worked so here's the url to where I found the java. It's under the title "Javascript for Easy Printing." null

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×