Title: Colorbox options not added to JavaScript code
Last modified: August 21, 2016

---

# Colorbox options not added to JavaScript code

 *  [William Rettmann](https://wordpress.org/support/users/whirled/)
 * (@whirled)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/colorbox-options-not-added-to-javascript-code/)
 * Just a public service announcement…
 * I was having a problem displaying dynamically generated images from PHP, and 
   had the “File as photo” option checked in the plugin options. However I noticed
   that the “photo:true” portion was not being added to the JavaScript code that
   was added to the page.
 * To fix this, I added the code below to line 138-ish in the plugin file _classes/
   actions.class.php_. File is version 2.6 according to comment headers.
 * `if ( $lightboxPlusOptions['photo'] == '1' ) { $lbpArrayPrimary[] = 'photo:'.
   $this->setBoolean( $lightboxPlusOptions['photo'] ); }`
 * Here is a sample of what I was experiencing without the photo:true option added
   to ColorBox: [http://stackoverflow.com/questions/8996744/colourbox-and-timthumb-php](http://stackoverflow.com/questions/8996744/colourbox-and-timthumb-php)
 * Thanks
 * [http://wordpress.org/plugins/lightbox-plus/](http://wordpress.org/plugins/lightbox-plus/)

The topic ‘Colorbox options not added to JavaScript code’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [William Rettmann](https://wordpress.org/support/users/whirled/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/colorbox-options-not-added-to-javascript-code/)
 * Status: not resolved