728x90-banner.png

WP-Print WordPress Extension

January 6, 2010 · View Comments

I recently installed LesterChan’s plugin, WP-Print. It is a great plugin and works wonderfully, but I had just one issue with it. When you click on “Print this Post/Page,” you would be taken to the printer friendly page, but no print dialog would come up. You would have to actually hit Cmd-P (or Ctrl-P for you misguided Windows users) or click the little link at the bottom to get the print dialog.

Well, I wanted something a little more lazy – I mean “user friendly” – so I came up with this nifty little JavaScript. The easiest way to implement it is to put it into the Disclaimer/Copyright Text area on the WP-Print settings page.

<script>function printme() {window.print(); return false;} window.onload=printme;</script>

Enjoy!


  • The post of content is very interesting and exciting. I learned a lot from here.The content from simple to complex, so all of you can come in . No matter you want to see what can be found.By the way ,there are some websites is also very wonderful,you can go and see.such as air jordan 16.5
blog comments powered by Disqus

Previous post:

Next post: