Title: Adding button to lightbox interface
Last modified: August 20, 2016

---

# Adding button to lightbox interface

 *  [yoxalld](https://wordpress.org/support/users/yoxalld/)
 * (@yoxalld)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-button-to-lightbox-interface/)
 * I am trying to add a print link to the lightbox interface. It just needs to link
   to the currently displayed image file. I have added the following code to the
   helper.js file in the lightbox plus theme I am using. It adds the link correctly
   but I can’t get a function to run when the link is clicked. Any help would be
   much appreciated!
 *     ```
       $(document).bind('cbox_complete', function () {
               // Show close button with a delay.
               $('#cboxClose').css('opacity', 1);
               // Add Print Button
               if ($('#print-one').length ) {
               	// Do Nothing
               }else {
               	$('#cboxNext').after('<a href="javascript:void(0)" id="print-one">Print</a>');
               }
           });
   
           $('#print-one').click(function() {
           	console.log('Works');
           });
       ```
   
 * This is all wrapped inside the document.ready function. I just can’t get the 
   console log to work when the link is clicked. I have been beating my head against
   a wall trying to figure it out. Thanks for any help!
 * [http://wordpress.org/extend/plugins/lightbox-plus/](http://wordpress.org/extend/plugins/lightbox-plus/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Dan Zappone](https://wordpress.org/support/users/dzappone/)
 * (@dzappone)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-button-to-lightbox-interface/#post-3417920)
 * I’ll take a look as time allows. I’m late in completing an update for another
   plugin whose API is about to disappear.
 *  [shainanz](https://wordpress.org/support/users/shainanz/)
 * (@shainanz)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/adding-button-to-lightbox-interface/#post-3418039)
 * Hey, [@yoxalld](https://wordpress.org/support/users/yoxalld/), did you ever figure
   this one out?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding button to lightbox interface’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lightbox-plus_fafafa.svg)
 * [Lightbox Plus Colorbox](https://wordpress.org/plugins/lightbox-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-plus/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [shainanz](https://wordpress.org/support/users/shainanz/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/adding-button-to-lightbox-interface/#post-3418039)
 * Status: not resolved