Title: Adding additional content
Last modified: August 20, 2016

---

# Adding additional content

 *  Resolved [srailsback](https://wordpress.org/support/users/srailsback/)
 * (@srailsback)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-additional-content/)
 * My client is using this plugin and loves it. He would like to add an link the
   image to his shopping cart. I’ve scanned the code but an not seeing where I can
   insert this.
 * [http://wordpress.org/extend/plugins/nextgen-gallery-colorboxer/](http://wordpress.org/extend/plugins/nextgen-gallery-colorboxer/)

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

 *  Plugin Author [Mark Jeldi](https://wordpress.org/support/users/mark-jeldi/)
 * (@mark-jeldi)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-additional-content/#post-3498410)
 * Hi srailsback,
 * I’m glad to hear your client’s enjoying the plugin!
 * It sounds as though you’re looking to add a “Buy Now” link in the ColorBox lightbox’s
   description text, which points to a specific sales page for the item. Is this
   correct?
 * If so, you can simply add the link HTML directly into NextGEN Gallery’s “Description”
   field for each image at _Gallery –> Manage Gallery –> your\_gallery\_name_.
 * For example:
    `My awesome painting | <a href="http://www.mysite.com/store/my-
   awesome-painting/" style="color: red;">Buy Now!</a>`
 * Hope this helps!
 * Cheers,
    Mark.
 *  Thread Starter [srailsback](https://wordpress.org/support/users/srailsback/)
 * (@srailsback)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-additional-content/#post-3498411)
 * Thanks Mark for the tip – unfortunately it was not as simple as you described.
   Client wanted the buy now link in #cboxBottomCenter and also did not want to 
   have to build a project page for each item (he has thousands). In the end I rolled
   a little js to get the desired outcome:
 *     ```
       jQuery(document).bind('cbox_complete', function(){
       	// get the title
       	var t = jQuery('#cboxTitle').text();	
   
       	// split it
       	var arr = t.split(' ');
       	var imageId = arr[0].replace('#','');
       	jQuery('#cboxBottomCenter').append("<a class='cbox-add-to-cart' style='float:left' margin-top: -10px;' href='cart/?image="+imageId+"'>Purchase Print</a>");
       });
       ```
   
 * Thankfully he includes the product id on all product titles. I wrote a custom
   page template that handles the incoming request and displays the product and 
   cart stuff.
 *  Plugin Author [Mark Jeldi](https://wordpress.org/support/users/mark-jeldi/)
 * (@mark-jeldi)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-additional-content/#post-3498412)
 * Hey srailsback,
 * No worries. And thanks for sharing your custom solution! That’s very clever! 
   🙂
 * Cheers,
    Mark.

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

The topic ‘Adding additional content’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-gallery-colorboxer.svg)
 * [NextGEN Gallery ColorBoxer](https://wordpress.org/plugins/nextgen-gallery-colorboxer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery-colorboxer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery-colorboxer/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery-colorboxer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery-colorboxer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery-colorboxer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mark Jeldi](https://wordpress.org/support/users/mark-jeldi/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/adding-additional-content/#post-3498412)
 * Status: resolved