Title: wp-super-user's Replies | WordPress.org

---

# wp-super-user

  [  ](https://wordpress.org/support/users/wp-super-user/)

 *   [Profile](https://wordpress.org/support/users/wp-super-user/)
 *   [Topics Started](https://wordpress.org/support/users/wp-super-user/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wp-super-user/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wp-super-user/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wp-super-user/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wp-super-user/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wp-super-user/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LightPress Lightbox] Does not load correctly – any image clicked first loads as .jpg](https://wordpress.org/support/topic/does-not-load-correctly-any-image-clicked-first-loads-as-jpg/)
 *  Thread Starter [wp-super-user](https://wordpress.org/support/users/wp-super-user/)
 * (@wp-super-user)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/does-not-load-correctly-any-image-clicked-first-loads-as-jpg/#post-4291257)
 * For what it is worth, I have put the following code in the Custom Java Script
   on the Main page of the Options part of the WP Dashboard, still no luck:
 *     ```
       jQuery(document).ready(function doLightBox(){
       	var haveConf = (typeof JQLBSettings == 'object');
       	var ss, rs, ms = 0;
       	if(haveConf && JQLBSettings.slideshowSpeed) {
       		 ss = parseInt(JQLBSettings.slideshowSpeed);
       	}
       	if(haveConf && JQLBSettings.resizeSpeed) {
       		rs = parseInt(JQLBSettings.resizeSpeed);
       	}
       	if(haveConf && JQLBSettings.marginSize){
       		ms = parseInt(JQLBSettings.marginSize);
       	}
       	var default_strings = {
       		help: ' Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.',
       		prevLinkTitle: 'previous image',
       		nextLinkTitle: 'next image',
       		closeTitle: 'close image gallery',
       		image: 'Image ',
       		of: ' of ',
       		download: 'Download',
       		pause: '(pause slideshow)',
       		play: '(play slideshow)'
       	};
       	jQuery('a[rel^="lightbox"]').lightbox({
       		adminBarHeight: jQuery('#wpadminbar').height() || 0,
       		linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self',
       		showInfo: (haveConf && JQLBSettings.showInfo == '0') ? false : true,
       		displayHelp: (haveConf && JQLBSettings.help.length) ? true : false,
       		marginSize: (haveConf && ms) ? ms : 0,
       		fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false,
       		resizeSpeed: (haveConf && rs >= 0) ? rs : 400,
       		slidehowSpeed: (haveConf && ss >= 0) ? ss : 4000,
       		displayDownloadLink: (haveConf && JQLBSettings.displayDownloadLink == '0') ? false : true,
       		navbarOnTop: (haveConf && JQLBSettings.navbarOnTop == '0') ? false : true,
       		strings: (haveConf && typeof JQLBSettings.help == 'string') ? JQLBSettings : default_strings
       	});
       })
       ```
   

Viewing 1 replies (of 1 total)