WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-Print] Print Dialog Auto Load (2 posts)

  1. Donald Gilbert
    Member
    Posted 4 years ago #

    So, I really love the WP-Print plugin, it is really great. I have one issue with it though - why doesn't the print dialog automatically load when the printer friendly page loads?

    I needed this, so I wrote up a JavaScript to take care of it for me, but it would be nice if it was integrated into the core with an option added to the settings page to enable or disable the auto print dialog popup.

    Well, for now, I wrote this JavaScript to provide the functionality for me.

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

    Easiest way to implement it is by placing it in the Disclaimer/Copyright area of the settings page.

  2. calydon
    Member
    Posted 4 years ago #

    Hi Dilbert4life,

    This was really handy - thanks for the tip!
    I agree - this should be an option in the plugin's administration panel.

Topic Closed

This topic has been closed to new replies.

About this Topic