Title: EC Lightbox
Author: daniloercoli
Published: <strong>2026-يىلى 20-يانۋار</strong>
Last modified: 2026-يىلى 20-يانۋار

---

قىستۇرما ئىزدە

![](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://ug.wordpress.org/plugins/ec-lightbox/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/ec-lightbox/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/ec-lightbox/#installation)
 * [ئىجادىيەت](https://ug.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/)
گە مۇشتەرى بولغىلى بولىدۇ.

## Meta

 *  Version **1.1.0**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **6 ئاي بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **20+**
 *  WordPress نەشرى ** 6.7 ياكى يۇقىرى **
 *  **6.9.5** دا سىنالغان
 *  PHP نەشرى ** 7.4 ياكى يۇقىرى **
 *  تىل
 * [English (US)](https://wordpress.org/plugins/ec-lightbox/)
 * بەلگە
 * [galleries](https://ug.wordpress.org/plugins/tags/galleries/)[lightbox](https://ug.wordpress.org/plugins/tags/lightbox/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/ec-lightbox/advanced/)

## دەرىجە

No reviews have been submitted yet.

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

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/ec-lightbox/reviews/)

## تۆھپىكار

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

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/ec-lightbox/)