• Resolved hexagongirl

    (@hexagongirl)


    Further to my comment here, I discovered that LBP removes some of the new(?) classes WP 3.5 uses for galleries.

    This was what caused my styling to go out of the window (because styling was based on these removed classes).

    In particular, I had used the gallery-columns-[n] class (fits nicely with a grid).

    Here’s an example of the gallery classes without LBP:

    gallery galleryid-6 gallery-columns-6 gallery-size-thumbnail

    And with LBP enabled/use for WP gallery checked:

    gallery galleryid-6

    Thanks!

    https://www.ads-software.com/extend/plugins/lightbox-plus/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dan Zappone

    (@dzappone)

    Thanks for the info. I think I need to update the gallery shortcode modification to reflect this. Will do that first and make a test update available.

    Plugin Author Dan Zappone

    (@dzappone)

    Ok, after some investigating I find that strange because on my 3.5 install with LBP 2.5.3 I get all those styles. I can’t replicate the style problem or the single gallery image problem.

    Unfortunately it also seems that it will lightbox gallery images even if Use for WP Gallery is unchecked. But that’s another problem I’ll have to address.

    Here’s the development version with updated shortcode function. Give it a try and let me know if it makes any difference.

    Thread Starter hexagongirl

    (@hexagongirl)

    Development version seems to have done the trick re. the classes – thanks!!

    I’m still getting wierd styles when the image is opened in lightbox (right and bottom sides of lightbox are not visible, include next/previous links), but that might just be something wierd I’m doing – will investigate further.

    Thread Starter hexagongirl

    (@hexagongirl)

    Solved the wierd styles (missing right & bottom borders) thing – it was due to using border-box in a reset stylesheet:

    * {
    	-webkit-box-sizing: border-box;
    	-moz-box-sizing:    border-box;
    	box-sizing:         border-box;
    }

    Fixed by overriding for #colorbox:

    #colorbox {
    	-webkit-box-sizing: content-box;
    	-moz-box-sizing:    content-box;
    	box-sizing:         content-box;
    }

    Dan – this may be something you want on your radar as the use of border-box picks up? See https://paulirish.com/2012/box-sizing-border-box-ftw/ for reference.

    Plugin Author Dan Zappone

    (@dzappone)

    Thanks for the heads up and thanks for testing!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New classes used for 3.5 galleries removed by LBP’ is closed to new replies.