• Hmmm. Well it works and it’s simple. Its what I’m looking for… for the most part. The settings area needs a complete overhaul though; a lot of cleaning up is needed here. I’d like my image captions to display correctly though, and they don’t. The author states:

    Lightbox Gallery will load ‘lightbox-gallery.css’ and ‘lightbox-gallery.js’ from your theme’s directory if they exist. If they don’t exist, they will just load the default ‘lightbox-gallery.css’ and ‘lightbox-gallery.js’ that come with Lightbox Gallery.

    But this is either unclear or not so. I uploaded the lightbox-gallery.css into my child theme folder and it doesn’t over ride the original css at all. I will have to tear this apart and do some tinkering to figure out what exactly I need to do. Unclear instructions that could have been better thought-out. Would have given it 5 stars if not for this and the settings page messiness.

Viewing 1 replies (of 1 total)
  • Thread Starter spiralmind

    (@spiralmind)

    Ok, after spending some time tinkering around with this plugin I have some things for consideration for those looking to incorporate it into their own WP installation. If you don’t use captions then this doesn’t apply, but if you do and want the captions to look better… this is for you!

    1) The plugin is using TEMPLATEPATH on line 106 of lightbox-gallery.php, which means it won’t look inside your child theme directory, if you happen to be using a child theme (which is the proper way to be modding a theme in the first place — and something all plugin authors should be expecting!). I hope the author of this plugin changes this in a future version to instead use the stylesheetpath or some other method (there are several others) to look first for the child theme directory, before looking at the parent theme directory. This would be a great improvement and allow overriding of the default css more efficiently. One could easily change this on line 106 but you’d be losing that mod the moment you upgrade (if this author ever upgrades this plugin?).

    2) The workaround for me, because I didn’t want to spend a whole lot of time, was to over ride the CSS using my child theme’s CSS. All i wanted to do was to fix the caption area — which is smooshed in between and behind the previous/next buttons — due to the author using ABSOLUTE positioning in the default styling. I’d recommend changing this behavior in future versions. It makes more sense to have the caption visible to the user in the lightbox, since you are allowing the user to “flip” through photos with the previous/next buttons. The captions are visible on the gallery images in the post… and in the lightbox they are smooshed behind the buttons and look awful, but if you make these simple changes you can improve upon this plugin like I did. Enough chatter… here’s what I did along with a photo where you can see the end results.

    /* for the lightbox plugin, we have to override some css values to show the caption area properly */
    #cboxTitle {
    	color: #fff !important;
    	font-weight: bold !important;
    	bottom: 28px !important;
    	right: 0px !important;
    	left: 0px !important;
    	background: #084A7C !important;
        opacity: 0.7;
        filter: alpha(opacity = 70);
        padding: 10px 5px !important;
        overflow: hidden !important;
    	width: auto !important;
    }

    Just add that to your custom css file and it will over ride the default styling. It simply raises the caption area from where it currently is and applies a nice transparency, background color and auto sizes the width to look good at the bottom of the image. I added extra !important to make sure no future changes over ride this in my theme. Here’s a photo of the improvement. I like the new caption area a lot and i tested it with different size caption text. Maybe the author can include something like this in a future version. It would be a nice addition. Don’t you think?
    See the photo with better captions

    You can probably make more improvements on this, if you do I’d like to hear about it. I was in a hurry and this worked great for me. If there’s a better or easier way, chime in! Thanks to the author for making this plugin, its still a good simple plugin that does what I wanted and still saved me some time. ??

Viewing 1 replies (of 1 total)
  • The topic ‘needs better instructions & cleaner settings page.’ is closed to new replies.