2 image-related Qs about GB2
-
Hi, thank you so much for this great new update. I am still becoming familiar with all of the new changes but there are two things I’ve run into that I would like to ask about.
- The new image element doesn’t seem to always have a figure element (only when there is a caption, I think) AND doesn’t seem to have a CSS-selector attached automatically. I tried adding one myself, but the class gets added to the image itself, so that doesn’t work either and even if it did work this makes it very difficult for a lightbox plugin to be compatible out of the box with GB2.0.
I’ve been using Lightbox for Gallery & Image Block, which I’ve liked a lot, but when I asked to make it compatible with GB2 they said:
“Unfortunately, there is no CSS class I can target for the link for the Lightbox. It’s quite unusual that there is no CSS class at all on the element. You could try to target all figure elements, but that’s just a workaround.
add_filter( ‘baguettebox_selector’, function( $selector ) { return $selector . ‘,figure’; } )“
And considering that the figure tag isn’t always there either, this wouldn’t work.
So my first question is, would you consider adding a standard CSS-selector that a lightbox plugin could target? - My second question has to do with the new query block. If I have featured images in the query block, I would like to set the image size to one of the standard image sizes. I was expecting that option to be above the width and height boxes in the options panel but I don’t see them there. Have they been moved? Is it something wrong in my site? Or have they been removed?
Thank you very much for your time!
Kind regards, Naomi - The new image element doesn’t seem to always have a figure element (only when there is a caption, I think) AND doesn’t seem to have a CSS-selector attached automatically. I tried adding one myself, but the class gets added to the image itself, so that doesn’t work either and even if it did work this makes it very difficult for a lightbox plugin to be compatible out of the box with GB2.0.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.