Title: Fixed width lightboxes?
Last modified: August 21, 2016

---

# Fixed width lightboxes?

 *  Resolved [SimplyMarkB](https://wordpress.org/support/users/smartguyus/)
 * (@smartguyus)
 * [13 years ago](https://wordpress.org/support/topic/fixed-width-lightboxes/)
 * How can I make colorbox fixed (or 75% of the browser size) width with this plugin?
   Anything special I need to know?
 * Should I be using a diff lightbox?
 * -Mark
 * [http://wordpress.org/extend/plugins/photonic/](http://wordpress.org/extend/plugins/photonic/)

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

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [13 years ago](https://wordpress.org/support/topic/fixed-width-lightboxes/#post-3719993)
 * You will have to change the plugin code in photonic/include/scripts/photonic.
   js:
 * Look for this code:
 *     ```
       $j('a.launch-gallery-colorbox').each(function() {
       		$j(this).colorbox({
       			opacity: 0.8,
       			maxWidth: '95%',
       			maxHeight: '95%',
       			title: photonicLightBoxTitle(this),
       			slideshow: Photonic_JS.slideshow_mode,
       			slideshowSpeed: Photonic_JS.slideshow_interval
       		});
       	});
       ```
   
 * Replace `maxWidth` and `maxHeight` with `width` and `height` respectively.
 * You have to make a similar change in photonic/extensions/Photonic_Processor.php,
   where you will see this code:
 *     ```
       else if ($this->library == 'colorbox') {
       			$ret .= "<script type='text/javascript'>\$j('a.launch-gallery-colorbox').each(function() { \$j(this).colorbox({ opacity: 0.8, maxWidth: '95%', maxHeight: '95%', title: photonicLightBoxTitle(this), slideshow: Photonic_JS.slideshow_mode, slideshowSpeed: Photonic_JS.slideshow_interval });});</script>";
       		}
       ```
   
 *  Thread Starter [SimplyMarkB](https://wordpress.org/support/users/smartguyus/)
 * (@smartguyus)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/fixed-width-lightboxes/#post-3719999)
 * WOW.. I didn’t notice your reply Sayontan. I thought you forgot about me. LOL.
   Thanks for the info. 🙂

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

The topic ‘Fixed width lightboxes?’ is closed to new replies.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [SimplyMarkB](https://wordpress.org/support/users/smartguyus/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/fixed-width-lightboxes/#post-3719999)
 * Status: resolved