Johannes Kinast
Forum Replies Created
-
Hi @veki007,
I think it just moved to the Toolbar, like with Images. Select the Gallery and then the chain.
Hi @vikysrnkova,
Great that you figured that out!
It doesn’t really matter how you include
the_content
for my plugin. It just looks for the corresponding CSS classes on the page.Hi @vikysrnkova,
I need a live site to help you here. On my site, the Gallery works as expected.
Hi @vikysrnkova,
please provide a link where the issue happens.
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Using the lightbox with a custom galleryYou have to provide a custom JavaScript function. That’s the default:
function(t){var e=t.parentElement.classList.contains("wp-block-image")||t.parentElement.classList.contains("wp-block-media-text__media")?t.parentElement.querySelector("figcaption"):t.parentElement.parentElement.querySelector("figcaption,dd");return!!e&&e.innerHTML}
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Using the lightbox with a custom galleryHi @rawhasan,
Great that you figured this out!
Can you send me a link with a gallery and description?
In addition I just released a new version 1.15 which includes a filter for the caption function: https://github.com/goaround/gallery-block-lightbox/blob/2b9c853ddb75f9033b957f84426c2db0ac2de903/gallery-block-lightbox.php#L50
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Using the lightbox with a custom galleryHi @rawhasan,
the class exists already. You need to add the following code snipped to your functions.php:
add_filter( 'baguettebox_selector', function() { return '.
dynamic-entry-content
'; } )Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Transition effectHi @cableboy,
the plugin uses baguettBox.js. You could fork the plugin https://github.com/goaround/gallery-block-lightbox and set
animation
tofalse
to disable transition. See https://github.com/feimosi/baguetteBox.jsForum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Using the lightbox with a custom galleryHi @rawhasan,
you have to change the CSS selector for this behavior. Using
.dynamic-entry-content
should work for you. See: https://www.ads-software.com/plugins/gallery-block-lightbox/#how%20can%20i%20add%20my%20own%20block%3F%20%2F%20can%20i%20change%20the%20css%20selector%3FForum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Magnify glass cursor on hoverOtherwiese just send me the changes made to https://raw.githubusercontent.com/goaround/gallery-block-lightbox/master/README.md
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Magnify glass cursor on hoverHi,
Great, thank you!
You are welcome to submit a PR: https://github.com/goaround/gallery-block-lightbox
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Magnify glass cursor on hoverHi @newoceans,
I’m glad that you like my plugin! Feel free to leave this as a review.
I would like to keep the plugin as simple as possible. The plugin supports multiple Gallery and Image Blocks, not just the default blocks. Then I need to create a lot of CSS selectors to apply the zoom-in cursor and I don’t want to add a settings page.
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Description instead of captionHi @tippl,
you can fork the plugin and modify the selector for the caption, see https://github.com/goaround/gallery-block-lightbox/blob/9a75ba2b1cb9d52cf5402bbd4166549d1e94d3f5/gallery-block-lightbox.php#L43
Forum: Plugins
In reply to: [Lightbox for Gallery & Image Block] Just Media file instead of light boxThen you have to add the following snippet to
functions.php
:add_filter( 'baguettebox_enqueue_assets', '__return_true' );