Download Print.css in a .zip file
Not knowing CSS very well and being new to WordPress, I looked all over for a Printer Friendly plugin that would print just the body of the pages in a post or a page on my website. I found a plugin, but I could not get it to work. (I am not experienced enough to know how to edit CSS and PHP very well) . I also found a couple of pre-made CSS files that were to make the posts and pages printer-friendly, but I did not have the right theme or know what they were trying to include, and so it would not print right for me.
In the end, I was able to find a basic CSS tutorial on how to make a printer-friendly CSS file. But, the tutorial was not really made for WordPress. So, back to the drawing board. In the end, I created a printer-friendly CSS file. I had to add a bit of code to the header.php page of the theme to get it to work correctly. This file will not give you an on screen printer preview of what it will print. But, if you goto File / Print Preview in the browser, it will show you what the page will look like before you print it.
This one file may not work for all, but I have included a short how-to to modify it. Basically, if it is showing things you do not want to print, then look in your theme / style.css (For WordPress)Â file to see what the name of the ID is. For example, if it is showing the menu blocks on the right and left side of the page, and you do not want to print those, then look in the style.css file and find what they are called. For example, you might find this in your style.css:
#block {
padding: 0 0 0 0;
font-size: 80%;
text-align: justify;
}
So, in the print.css , replace
#right_block {
display: none;
}
with
#block {
display: none;
}
and it will make it so what is defined in the style.css as #block will not display when you print it. You can use this to narrow down the elements on the page you want to be printed.
Also, for WordPress, you need to add the following to your header.php file that is found in your theme folder.
<link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(’siteurl’); ?>/print.css” />
If you are not using WordPress, you still need to put this in the head of the page(s) you want to be printer friendly.
To view it before it prints, open your browser, see if it has File | Printer Preview and click on it, view it and then you can print it.
Unfortunately, my knowledge on CSS and PHP is extremely limited so I will not be able to support this. The best thing I can say is play around with it and try new things. You can always delete the print.css if you get it all out of whack. It might take a few tries to get it just right for what you want to print.
![]()







October 23rd, 2005 at 9:26 pm
Thank you for writing this post and for the help on the WP forums! I’m looking forward to working with print.css.
Best wishes!
October 23rd, 2005 at 10:31 pm
You are welcome. I hope it helps!
December 27th, 2005 at 8:51 am
Very useful, thanks.
January 25th, 2006 at 9:55 am
Alles, das Sie wnschen, ist vor Ihnen recht. Die Frage ist “was Sie tun mit ihm”?
January 27th, 2006 at 1:13 pm
Great blog. Found your blog while searching for more information at yahoo about this post . Your blog has quite a lot of interesting thoughts. Keep up the good work!
January 27th, 2006 at 6:46 pm
You have really done a good job on this. Keep it up!
February 2nd, 2006 at 1:25 am
Hi, I like your site! I enjoyed browsing it. Thanks. In Dutch we say dank-je-wel 4 thanks))
February 2nd, 2006 at 9:01 pm
I like what you did with the design of your blog! Compliments. Regards, Albert.
February 4th, 2006 at 1:11 am
Stopping by! I am trying to start my own blog on disaster recovery site suggest.I heard some people just have blogs now and don’t use regular urls? Do you agree with this way to promote url?. Just starting out, DREW
February 7th, 2006 at 12:12 pm
I loved your post! I came across your blog and it really cuaght my attention, I’ll be sure to come back for more! Keep up the good work!
February 13th, 2006 at 2:15 am
Hi, My name is Suzanne from France. 16 years of age. I like this too! I am a student, doing research on the recent ‘bloghype’ I hope you do not mind me using it coming thursday when I have to finish my project. It would be nice to show my teachers I learned something here. Thanks.
February 13th, 2006 at 1:03 pm
Hi, I thought I’d just leave this message on your blog. I hope you don’t mind. I’ve been trying to find blogs where people are talking about Search engine marketing tutorials and when I was looking, I found this one on this post. You have helped me in some way. Anyway, I want to say thank you before I go off to find some more info about it.
February 14th, 2006 at 8:52 pm
I couldn’t agree more!
February 15th, 2006 at 3:00 pm
I really could care less but I did agree with what you said.
February 15th, 2006 at 6:05 pm
Thanks for the information. Very helpful.
February 16th, 2006 at 3:04 am
Awesome! Thanks.
February 17th, 2006 at 11:43 am
Awesome! Thanks.
February 18th, 2006 at 12:50 am
Wow this is a nice site. :0) I like the comments even though I don’t 100% agree with all of them. I am a grad student at the University of Sacred Heart in Connecticut. If you don’t mind I will use your blog as a example for my semester project that I am doing on the internet and ecommerce. If you reject the thought send me a quick email
-Corey
February 18th, 2006 at 4:49 pm
What is up! I am trying to start my own blog on restore data excel.Can you add your blog as a subdirectory of your domain if you already paid for domain?. Thank you so much, LEONARDO
November 12th, 2008 at 3:02 pm
I use something called Programmers Notepad which is completely free to edit my css files.
November 14th, 2008 at 1:37 am
Thank you for writing this post!
November 14th, 2008 at 11:35 pm
Great post girl!
November 22nd, 2008 at 5:52 pm
[...] I found the following, perhaps useful links. WP-Print 2.31 Readme WP-Print 2.31 Readme CSS Printer Friendly for WordPress » Aleeya dotNet __________________ Inkweaver Review Imagination Manifesto Please follow me on [...]
December 13th, 2008 at 5:37 pm
Awesome tips thanks for this article.
sbs baÅŸvuruları’s last blog post..2009 sbs ne zaman
December 18th, 2008 at 1:17 am
Hey! Thanks for posting this info. One of the things Im starting to do now a days is get more into hacking the templates I am using, and I like the fact that we can. One thing I recently did was create a site that I can experiment with before I use on others, and I can tell you it makes all the difference!
Matt
Matt’s last blog post..Golf Packages In Arizona is Where I Vacation
December 18th, 2008 at 10:12 am
Matt I have to agree with you- that is what I spend a lot of time doing. I love the templates available but even better I love to be able to alter them and make them more personal. Its where I learn a lot of the code by breaking them down. Thanks for your input! And great idea using another site to beta test on before you use it on the final one!
December 24th, 2008 at 2:49 pm
I just started using Wordpress after years at blogger. It really is good to work with and easy to set up. Thank you so much for these tips.
December 31st, 2008 at 12:54 pm
I like the comments even though I don’t 100% agree with all of them. I am a grad student at the University of Sacred Heart in Connecticut. If you don’t mind I will use your blog as a example for my semester project that I am doing on the internet and ecommerce. If you reject the thought send me a quick email
January 3rd, 2009 at 10:36 am
Nice post, it has certainly helped me. I start with templates and amend them to suit my own needs – your css help will help me to improve them further. Thanks.
January 4th, 2009 at 10:47 am
Interesting use of CSS code. It’s not how I would have done, but it certainly does the job. Nice blog, bye the way, I visit you regularly, so I thought I’d drop a quick comment to say hello.
January 4th, 2009 at 8:23 pm
Very interesting use of CSS indeed. I’ve been teaching myself this information regularly now by hacking my own templates to my specifications. Some of the time I have trouble, but it can usually be fixed one way or another.
January 6th, 2009 at 1:44 pm
You have to be careful with CSS in your web programming because different browsers read in differently.
As a rule of thumb, you should try to preview any css site you’re building in all browsers to ensure quality appearance.
January 10th, 2009 at 12:45 pm
Have you tried using this with the latest browser flavors? Looks great in Firefox 3 and Safari, but preview and print both produced blank pages in IE 6 and IE 7 for me.
Milwaukee Web Designer’s last blog post..Blog Auto-Subscribe and Auto-Discovery Setup
January 13th, 2009 at 9:27 am
Thanks for the article. It was extremely useful for me as I learn by myself. And I agree with Boston Injury Lawyer. Different browsers display CSS in different way and might need tweaking for each browser. Once again thanks for the extremely useful information. Cheers.
All info about Scarlett Johansson!’s last blog post..Scarlett Johansson Has No ‘Baby’ Plans – RightFielders Women in Sports
January 13th, 2009 at 4:15 pm
Very useful
January 15th, 2009 at 11:25 pm
Great article. I’m still learning CSS and the information in this post were really useful. The comments were also really helpful. Thanks guy. Cheers
January 18th, 2009 at 9:24 am
this is some really awesome info on css. Thanks for sharing.
January 20th, 2009 at 12:02 pm
This is indeed a helpful post.
January 21st, 2009 at 6:50 am
Thanks for the css tips.. I am going to implement it now.
Sample Resumes’s last blog post..Sample Bank Branch Manager Resume
January 21st, 2009 at 10:18 am
This was the main problem I was having and couldn’t find any proper plug in.. Thanks this CSS file is working OK for me .. Thanks, I been looking through your blog, it has couple of useful tutorials to make blogging worth it.
January 22nd, 2009 at 10:45 am
Nice post. I dont think you can under estimate the power of CSS as they can help in SEO, speed and userbility.
January 23rd, 2009 at 4:49 am
I am still quite new at css but your post has been really helpful in answering some of my questions. Thanks.
January 25th, 2009 at 12:47 am
Great. Just what I was looking for. I too was looking for this for quite some time but couldn’t find anything useful. This works great though. Thanks for the awesome plug-in. and keep up the awesome work. Cheers
January 25th, 2009 at 12:01 pm
Thanks for the blogpost. I´m trying to do my first steps in working with wordpress. This helps a lot. Thanks!
January 26th, 2009 at 1:39 am
stumbled upon your blog and found it really useful. Especially this post. I’m learning CSS and this article gave me some really useful tips. I’m no coder or designer but this really helped me a lot. thank you
January 26th, 2009 at 11:07 pm
Wow,cool. One of my friend who came to your site recommended me to have a look. and its simply awesome. I’ve being using CSS for quite some time now in this is one awesome tip I’ve come across. Keep it up. Will be back again for some good tips.
January 28th, 2009 at 1:42 am
I visited your site few days back and started using the plug-in. I’ve to hand it to you it works simply awesome. Just thought to drop a word. Thanks alot
January 28th, 2009 at 12:35 pm
Thanks for the post it was very informative. I never thought about making my blogs print friendly. I could see some issues while trying to install this plug. Also what happens to the background images when printing. I don’t think they show up when being used within css.
Mobile Technology’s last blog post..Consumer Electronics Show (CES) – The Hub of Techno Products
January 29th, 2009 at 5:45 am
Neat, this plug-in really pointed me out that if the blog is print friendly as well, it will be really easy for the readers. Also the plug-in is coded in a really awesome way. Need to try this out. Thanks
January 30th, 2009 at 3:06 am
well, that is indeed a very nice idea and I read from the comments its working, but … I can’t download it I tried 2 times, it shows the 404 page …
February 2nd, 2009 at 1:50 pm
Very interesting use of CSS indeed
Thanxs found the interesting use of CSS very beneficial will pass on to some people i know into Web Design in London. The Search Engine Marketing tutorials are hard to find
February 3rd, 2009 at 8:06 am
Great. Nice plug-in. CSS is such a powerful tool. Great work with the plug-in. Love it. Also the file is downloading okay Jeff. Give it another go. Cheers
February 6th, 2009 at 6:07 am
Thatÿffff92s Too nice, when it comes in india hope it can make a Rocking place for youngster.. hope that come true.
February 6th, 2009 at 12:33 pm
It sounds like you’re creating problems yourself by trying to solve this issue instead of looking at why their is a problem in the first place.
February 7th, 2009 at 1:34 am
amazing stuff thanx
February 9th, 2009 at 3:50 am
Superb. Great for my CSS learning. nice work with the plug-in. I really need to check it out tonight. Thanks
February 10th, 2009 at 4:39 am
Nice, I have taken this approach with my WP site and it works sweetly. Thanks.
February 12th, 2009 at 11:28 pm
Thank you very much! I didn’t know I could do that!
February 12th, 2009 at 11:36 pm
Thank you so much for this… I made a lot of my website black to save energy, but didn’t know how to save the ink, too! I will try this on my next update. Wish me luck!
Central PA Boudoir Photographer’s last blog post..I Love Kitsch!
February 13th, 2009 at 12:21 pm
This is very helpful, thank you.
February 14th, 2009 at 10:01 am
thanks !! very helpful post!
February 15th, 2009 at 11:17 pm
Thanks a lot for the awesome plug-in. CSS is a really useful tool and this would really help to learn CSS. Thanks again. Cheers
February 18th, 2009 at 9:57 am
Thanks for these tips, very helpful.
February 19th, 2009 at 3:34 pm
You have really done a good job on this. Keep it up!
February 19th, 2009 at 10:42 pm
Interesting. Really good article. CSS is one awesome and powerful tool. Making it printer friendly would help people learn from the code. which is a good thing. But I doubt everyone will like to implement this. Nevertheless, great job. Keep it up. Cheers
Nadeesha @ ROCKFUSE Blog Resources’s last blog post..I moved to HostClear! Probably the best blog host I’ve been with.
February 21st, 2009 at 10:14 pm
Yup, appreciate the information here. Found it really useful for some of my work. I’ve been wondering around your blog for sometime now and just thought to drop by and thank you. Cheers. Keep it up man
February 22nd, 2009 at 11:16 pm
Interesting article. Printer friendly CSS would be only for educational purpose isn’t it. would there be any other use of it? Thanks anyway.
February 26th, 2009 at 11:03 pm
Thanks for the tips. CSS is one awesome tool. And by this plug-in most of the visitors can learn CSS by printing the code out. Really awesome. Thanks a lot.
February 27th, 2009 at 12:00 pm
This was a great tip. At Arizona SEO we are continually trying to improve our site, blog and functionality. We just switched our blog over to WP, so this will definitely come in handy!!
Thanks for the detail!!!
February 28th, 2009 at 3:23 am
One of my buddies pointed me to your site. It’s really cool. Thanks for this awesome plug-in. Many newbies will be helped with this lug-in. thanks a bunch.
March 1st, 2009 at 1:21 pm
Using a Print stylesheet is definately worth doing, Print is just one of 10 different media types defined in the CSS2 spec including “screen”, “projection” “tv” and “handheld”.
e.g. for wordpress use:
<link rel=”stylesheet” media=”screen,projection,tv” href=”/main.css” type=”text/css”>
<link rel=”stylesheet” media=”handheld” href=”/smallscreen.css” type=”text/css”>
March 2nd, 2009 at 6:30 pm
Thanks for your great post. I never even thought of how to make my blogs printer friendly. I’m not familiar with CSS too much but your pointing me in the right direction.
March 21st, 2009 at 2:19 pm
[...] Aleeya.Net: CSS Printer Friendly for Wordpress – a sample CSS (didn’t work on Cutline theme) an some tips on how to make your own CSS. [...]
March 23rd, 2009 at 10:20 am
Thanks for this post. I’ve only just started using Word press myself and I was a bit confused at first, this article and the other posts below have helped clear it up for me.
March 23rd, 2009 at 2:40 pm
thanks for the print css tips. seems like this is a “timeless” post. am also going to try and get this working on our joomla sites.
ACT Test Prep’s last blog post..GRE Test
March 24th, 2009 at 10:21 am
Hi,
I am looking for ink cartridges for the Epson RX700. I have bought compatibles in the past but the ink quality is not so great or the chips dont recognise. Any help would be appreciated
March 31st, 2009 at 10:43 pm
CSS is one really awesome and powerful language. I’ve always believed learning learning by example is the best way to understand anything. Learning CSS from a site code is the best. This plug-in really will help to do this. Appreciate it. Cheers
April 2nd, 2009 at 9:17 pm
I really liked the way they came off
May 13th, 2009 at 3:09 pm
Thats a simple method you’ve adapted there.Very impressive, makes things a lot more easier now. Much more user friendly actually, a couple of my friends really want to start up their own blogs, I’d recommend this method to them. Thanks for sharing.
May 25th, 2009 at 10:56 pm
CSS is I believe the best ever language for designing. The simple yet powerfulness of the language really does help create some stunning sites and designs. By this plug-in i think a lot of people can learn by example. Cheers
May 31st, 2009 at 6:20 pm
[...] CSS Printer Friendly for WordPress Aleeya dotNet Posted by root 1 hour 47 minutes ago (http://www.aleeya.net) E g for wordpress use lt link rel stylesheet media screen projection tv href main css type text css gt lt link rel stylesheet media handheld Discuss | Bury | News | CSS Printer Friendly for WordPress Aleeya dotNet [...]
June 4th, 2009 (4 weeks ago) at 7:38 am
hey thanks m8t i really think its good what you created, but i find to mix css and tables is best in my opinion less hacks and stuff anyway im gona book mark this page thanks
June 12th, 2009 (3 weeks ago) at 2:25 pm
That was a great post…I love this site…Thanks
June 14th, 2009 (3 weeks ago) at 7:56 am
Really a educative and informative post, the post is good in all regards,I am glad to read this post.
June 20th, 2009 (2 weeks ago) at 10:51 am
I Love the way you write…thanks for posting