Lightbox for Gallery & Image Block
This WordPress Plugin adds a simple & lightweight Lightbox to the standard WordPress Gallery & Image Block. It detects if a post contains a Gallery or Image Block and then loads & initialize baguetteBox.js, a pure JavaScript Lightbox script without any dependencies and a modern minimal look. There is no lock in effect. It does not add a new Block Editor/Gutenberg Block and relies solo on the standard WordPress Gallery and Image Block. You can deactivate this plugin at any time and your Gallery and Image Blocks will work as they’ve done before. Just without the lightbox. Just one important thing to remember: You always have to select Link → Link to image file or Link images to media file (see screenshots below) for all of your Image & Gallery Blocks to work properly. If you choose None or Link to attachment page it will not work. But that’s fine if you don’t want the Lightbox for a specific Image or Gallery. Take a look at the YouTube video from Jakson where he reviews this plugin: Features Here are the features of baguetteBox.js: Written in pure JavaScript No dependencies (e.g. jQuery) Image captions support Responsive Supports swipe gestures Around 13 KB, 7 KB gzipped Works with Gallery Block (Default Block) Image Block (Default Block) Media and Text Block (Default Block) Gallery (Default Classic Editor Gallery) CoBlocks Gallery Collage / Masonry / Offset / Stacked Meow Gallery (+ Gallery Block) Don’t forget to select Link to → Media File for all of your Galleries & Images to work properly. Notice: At the moment, just Blocks inside a post are supported. Not Blocks in a Widget. You can make it work but have to enqueue the necessary style & script yourself. See FAQ –> How to enqueue the necessary assets (script & style) for blocks outside of posts or for block types that are not supported by default?
Top keywords
- block13×4.19%
- gallery12×3.87%
- image9×2.90%
- blocks5×1.61%
- default5×1.61%
- link5×1.61%
- work5×1.61%
- image block4×1.29%
- lightbox4×1.29%
- block default3×0.97%
- block default block3×0.97%
- default block3×0.97%
Perfect Portal Widgets
Allow your customers to generate a quote, generate intake form enquiries directly from your website. Also display customer reviews directly on your website. You must be an authenticated and active customer of Perfect Portal in order for this plugin to work. Widgets included: * Perfect Portal Intake Form * Perfect Portal Quote Calculator * Perfect Portal Review Widget External / 3rd Party References Each of the widgets are dependent on loading scripts that are externally hosted on Perfect Portal’s CDN. The url of the script that will be added to the page is based on the type of widget added (intake form, quote calculator, review widget) and the region that has been selected in the settings area. Use of the service is subject to the terms and conditions set out by Perfect Portal (UK) Ltd which can be found at: For Australia: https://www.perfectportal.com.au/terms-conditions For Canada: https://www.perfectportalcanada.ca/terms-conditions For New Zealand: https://www.perfectportal.co.nz/terms-conditions For United Kingdom: https://www.perfectportal.co.uk/terms-conditions For United States of America: https://www.perfectportal.com/terms-conditions Use of the service is subject to the privacy policy set out by Perfect Portal (UK) Ltd which can be found at: For Australia: https://www.perfectportal.com.au/privacy-policy For Canada: https://www.perfectportalcanada.ca/privacy-policy For New Zealand: https://www.perfectportal.co.nz/privacy-policy For United Kingdom: https://www.perfectportal.co.uk/privacy-policy For United States of America: https://www.perfectportal.com/privacy-policy Intake Form The intake form widget requires loading external scripts from the Perfect Portal CDN where the region can be any of the following au, ca, nz, uk, us. Therefore the possible external links/services required for the intake form widget are: For Australia: https://cdn.perfectportal.co.uk/widgets/intake/production/au/index.js For Canada: https://cdn.perfectportal.co.uk/widgets/intake/production/ca/index.js For New Zealand: https://cdn.perfectportal.co.uk/widgets/intake/production/nz/index.js For United Kingdom: https://cdn.perfectportal.co.uk/widgets/intake/production/uk/index.js For United States of America: https://cdn.perfectportal.co.uk/widgets/intake/production/us/index.js Quote Calculator The quote calculator requires loading external scripts from the Perfect Portal CDN based on the region configured, the identifier of the quote calculator requested and the display type of form to render (this can either be embedded directly on the page or a floating button to be clicked). For Australia: https://webcalc.perfectportal.com.au/apps/webcalc/v2.0/ For Canada: https://webcalc.perfectportalcanada.ca/apps/webcalc/v2.0/ For New Zealand: https://webcalc.perfectportal.co.nz/apps/webcalc/v2.0/ For United Kingdom: https://webcalc.perfectportal.co.uk/apps/webcalc/v2.0/ For United States of America: https://webcalc.perfectportal.com/apps/webcalc/v2.0/ Display Types: Embedded: this appends ’embed.’ to the region base url Floating: this appends ‘float.’ to the region base url Quote Calculator Identifier: This is a GUID of the particular form to display on a specific page that the web administrator will receive from their Perfect Portal account manager: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Therefore the url can be any combination of the above. E.g. UK example: https://webcalc.perfectportal.co.uk/apps/webcalc/v2.0/embed.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.js https://webcalc.perfectportal.co.uk/apps/webcalc/v2.0/float.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.js Australia example: https://webcalc.perfectportal.com.au/apps/webcalc/v2.0/embed.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.js https://webcalc.perfectportal.com.au/apps/webcalc/v2.0/float.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.js Review Widget The review widget requires loading externally hosted scripts from the Perfect Portal CDN based on the region configured and the company identifier (provided to the web administrator by their Perfect Portal account manager). For Australia: https://widgets.perfectportal.com.au/apps/reviews/v0.1/ For Canada: https://widgets.perfectportalcanada.ca/apps/reviews/v0.1/ For New Zealand: https://widgets.perfectportal.co.nz/apps/reviews/v0.1/ For United Kingdom: https://widgets.perfectportal.co.uk/apps/reviews/v0.1/ For United States of America: https://widgets.perfectportal.com/apps/reviews/v0.1/ E.g. UK Example: https://widgets.perfectportal.co.uk/apps/reviews/v0.1/reviews.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.js