WordPress.org

Ready to get started?Download WordPress

Forums

WP-Print
Here's how to create a "Lightbox" thingy..... (1 post)

  1. leeuniverse
    Member
    Posted 2 years ago #

    Here's the code you use to have your print pop-up in an Ajax whatever box.
    In this case, I have NextGen Gallery installed, and I'm using their "Thickbox" class. NextGen has the Thickbox and Shutterbox scripts installed.

    Use whatever box script you have installed in your wordpress, or add your own.

    <?php if(function_exists('wp_print')) { ?><a href="<?php the_permalink()?>?print=1" class="thickbox"><img src="http://www.yourwebsite.com/wp-content/plugins/wp-print/images/printer_famfamfam.gif" /></a> <a href="<?php the_permalink()?>?print=1" class="thickbox">Print this page</a><?php } ?>

    Enjoy....

    http://wordpress.org/extend/plugins/wp-print/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags