Title: EC Lightbox
Author: daniloercoli
Published: <strong>জানুৱাৰী 20, 2026</strong>
Last modified: জানুৱাৰী 20, 2026

---

প্লাগিনৰ সন্ধান কৰক

![](https://ps.w.org/ec-lightbox/assets/icon-256x256.jpg?rev=3443453)

# EC Lightbox

 [daniloercoli](https://profiles.wordpress.org/daniloercoli/)-ৰ দ্বাৰা

[ডাউনল’ড কৰক](https://downloads.wordpress.org/plugin/ec-lightbox.1.1.0.zip)

 * [বিশদ বিৱৰণ](https://as.wordpress.org/plugins/ec-lightbox/#description)
 * [পৰ্য্যালোচনা](https://as.wordpress.org/plugins/ec-lightbox/#reviews)
 *  [ইনষ্টলেশ্যন](https://as.wordpress.org/plugins/ec-lightbox/#installation)
 * [বিকাশ](https://as.wordpress.org/plugins/ec-lightbox/#developers)

 [সাহায্য](https://wordpress.org/support/plugin/ec-lightbox/)

## বৰ্ণনা

EC Lightbox is a minimal WordPress plugin that adds a modern lightbox to galleries
using [GLightbox](https://github.com/biati-digital/glightbox).

The plugin is opt-in by behavior: once activated, it only applies its lightbox functionality
to blocks where you explicitly add a custom CSS class (for example, a Gallery block).
Everywhere else, WordPress behaves normally.

### Features

 * Uses [GLightbox](https://github.com/biati-digital/glightbox) for a clean, responsive
   lightbox.
 * Works with WordPress core blocks (e.g. Gallery, Image).
 * Opt-in activation via a custom CSS class (`ec-lightbox`).
 * Groups images by gallery container (each block with `ec-lightbox` is its own 
   gallery).
 * Includes a **Settings page** in WordPress Admin.
 * Configurable behavior: loop, touch navigation, zoom.
 * Local vendor assets by default (no hard dependency on external CDNs).

### Requirements

 * WordPress 5.0+
 * PHP 7.0+
 * A block-based setup (Gutenberg) is recommended.

### How to enable EC Lightbox on a Gallery block

 1. Insert a **Gallery** block.
 2. Select the **Gallery block itself** (not a single image inside it).
 3. In the block sidebar, configure:
 4.  * **Link to**  `None`
     * Disable **“Open in lightbox” / “Enlarge on click”** if present.
 5. Open the **Advanced** panel.
 6. Add the following class:
     ec-lightbox
 7. Update or publish the post.

When users click an image inside that gallery, EC Lightbox will open and allow navigation
through the gallery.

Note:
 Make sure individual images inside the gallery do **not** have click settings
assigned. If these WP-native actions remain enabled, WordPress will attach its own
click/lightbox behavior, overriding this plugin.

### ⚙️ Settings Page (WordPress Admin)

A configuration screen is available at:

**Settings  EC Lightbox**

Available options:

 * **Loop images**
 * **Enable touch navigation**
 * **Enable zoom**
 * **Autoplay videos** (for future video support)

All settings are passed directly to the lightbox JavaScript on initialization.

### 🧩 Filters & Developer API

### 1. Modify GLightbox options programmatically

    ```
    `php
    ```

add_filter( ‘ec_lightbox_js_options’, function ( $options ) {
 $options[‘loop’] 
= true; $options[‘zoomable’] = false; $options[‘openEffect’] = ‘zoom’; // Any GLightbox
option is accepted return $options; }); ` Options merged from: 1. Plugin defaults
2. Admin settings 3. This filter (highest priority)

## ইনষ্টলেশ্যন

 1. Install EC Lightbox via the WordPress.org plugin repository or by uploading the
    files to your server.
 2. Activate **EC Lightbox** from **Plugins  Installed Plugins**.
 3. (Optional) Review default options in **Settings  EC Lightbox**.

The plugin ships with local GLightbox assets already included — no external downloads
are required.

## পৰ্য্যালোচনা

এই প্লাগিনৰ বাবে কোনো পৰ্য্যালোচনা নাই।

## অৱদানকাৰী আৰু বিকাশকাৰীসকল

“EC Lightbox” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।

অৱদানকাৰীসকল

 *   [ daniloercoli ](https://profiles.wordpress.org/daniloercoli/)

[আপোনাৰ ভাষাত “EC Lightbox” অনুবাদ কৰক।](https://translate.wordpress.org/projects/wp-plugins/ec-lightbox)

### বিকাশৰ প্ৰতি আগ্ৰহী?

[ক’ড ব্ৰাউজ কৰক](https://plugins.trac.wordpress.org/browser/ec-lightbox/), [SVN ৰিপজিটৰী](https://plugins.svn.wordpress.org/ec-lightbox/)
চাওক নাইবা [RSS](https://plugins.trac.wordpress.org/log/ec-lightbox/?limit=100&mode=stop_on_copy&format=rss)-
দ্বাৰা [বিকাশৰ পঞ্জী](https://plugins.trac.wordpress.org/log/ec-lightbox/) ছাবস্ক্ৰাইব
কৰক।

## মেটা

 *  **1.1.0** সংস্কৰণ
 *  **4 মাহ আগত** শেষবাৰ আপডে’ট হৈছিল
 *  সক্ৰিয় ইনষ্টলেশ্যন **10+**
 *  WordPress-ৰ সংস্কৰণ ** 6.7 বা তাতকৈ ওপৰৰ **
 *  ইমানলৈকে পৰীক্ষা কৰা হৈছে **6.9.4**
 *  PHP-ৰ সংস্কৰণ ** 7.4 বা তাতকৈ ওপৰৰ **
 *  ভাষা
 * [English (US)](https://wordpress.org/plugins/ec-lightbox/)
 * [galleries](https://as.wordpress.org/plugins/tags/galleries/)[lightbox](https://as.wordpress.org/plugins/tags/lightbox/)
 *  টেগবোৰ
 *  [উচ্চখাপৰ ভিউ](https://as.wordpress.org/plugins/ec-lightbox/advanced/)

## ৰে’টিংবোৰ

এতিয়ালৈ কোনো পৰ্য্যালোচনা দাখিল কৰা হোৱা নাই।

[Your review](https://wordpress.org/support/plugin/ec-lightbox/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ec-lightbox/reviews/)

## অৱদানকাৰীসকল

 *   [ daniloercoli ](https://profiles.wordpress.org/daniloercoli/)

## সাহায্য

কিবা ক’বলগীয়া আছে? সহায় লাগে?

 [সাহায্যৰ ফ’ৰাম চাওক](https://wordpress.org/support/plugin/ec-lightbox/)