Title: Image &amp; Video Lightbox
Author: Arya Dhiratara
Published: <strong>2023년 6월 13일</strong>
Last modified: 2023년 6월 13일

---

플러그인 검색

![](https://ps.w.org/image-video-lightbox/assets/banner-772x250.png?rev=2925049)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://ps.w.org/image-video-lightbox/assets/icon-256x256.png?rev=2925049)

# Image & Video Lightbox

 작성자: [Arya Dhiratara](https://profiles.wordpress.org/aryadhiratara/)

[다운로드](https://downloads.wordpress.org/plugin/image-video-lightbox.1.0.0.zip)

 * [세부사항](https://ko.wordpress.org/plugins/image-video-lightbox/#description)
 * [평가](https://ko.wordpress.org/plugins/image-video-lightbox/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/image-video-lightbox/#installation)
 * [개발](https://ko.wordpress.org/plugins/image-video-lightbox/#developers)

 [지원](https://wordpress.org/support/plugin/image-video-lightbox/)

## 설명

Automatically adds Lightbox functionality to images displayed by WordPress (Gutenberg)
Gallery and Image Blocks, as well as GenerateBlocks Image Blocks, and also videos
created by the core Video Block, using the FSlightbox library.

This lightweight plugin will automatically adds Lightbox functionality to all images
displayed by

 * the Core Gallery Block,
 * the Core Image Block,
 * GenerateBlocks Image Block,

and videos displayed by

 * the core Video Block

without the needs to set each gallery/image and video link to the media file so 
you don’t need to set them manually one by one.

**Note**: You can exclude specific image/video from getting the lightbox functionality
by adding `no-lightbox` class to the image/video element.

### About The Plugin

 * This plugin has no settings _(you can customized the default configuration using
   filters)_, hence does not add any data to the database, so you don’t need to 
   worry about ‘database leftovers’ if you deactivate the plugin.
 * This plugin will automatically add the wrapper link with the necessary attribute
   on each image and videos that uses the blocks mentioned above to add the lightbox
   functionality using a few lines of inline script. So it will not make any changes
   to your original image and video tags (if you check from the page’s HTML source),
   and will not add extra weight / DOM depth to your page’s HTML.
 * By default, this plugin only works with the native WordPress Gallery, Image, 
   and Video Blocks, as well as GenerateBlocks Image Blocks. You can add additional
   selectors using filters to make this functionality also works with other image/
   video blocks. If you need to, send me a request to have your image/video block
   included by default.
 * This plugin will only enqueued its assets (1 JS file) to pages/posts that use
   blocks, and will not enqueue assets if the page/post doesn’t use one of them.
 * I provided simple hover CSS which are not enabled by default. You can enable 
   it using filter (_see below_).

### To add other image/video block:

**Add the CSS class uses by the image/video block element**, e.g:

    ```
    add_filter( 'use_lightbox_in', function($use_lightbox_in) {
        return $use_lightbox_in . ',.your-other-plugin-block-image-parent-element img, .your-other-plugin-image-class';
    } );
    ```

**Add the block info/name so that this plugin will enqueued the FSlightbox JavaScripts
if the block is use in a post/page**, e.g:

    ```
    add_filter( 'use_lightbox_if', function($use_lightbox_if) {
        return $use_lightbox_if . '|| has_block( "kadence/advancedgallery" ) || has_block( "your-plugin-block-name/the-block-name" )';
    } );
    ```

### To only enable Lightbox Functionality on certain page/post types:

Simply use the `wp_dequeue` function**, e.g.:

    ```
    add_action( 'wp_enqueue_scripts', function() {
        if ( ! is_singular('post') ) { // only enable in single post type
            wp_dequeue_script( 'image-video-lightbox' );
        }
    });
    ```

### To only enable simple hover CSS:

    ```
    add_filter('use_lightbox_css', function () {
       return true;
    });
    ```

### Why using FSlightbox?

 * **[FSlightbox](https://github.com/banthagroup/fslightbox)** is Vanilla Javascript
   Lightbox Library written in pure JavaScript without jQuery or any other additional
   dependencies. It’s lightweight (around **9kb** *gzip)!
     
 * The JavaScript is delayable (_*yes, it’s important for me_). This is the only
   lightbox library I found that works when the JavaScript is delayed.

 

### My other Plugins:

 * **[Optimize More!](https://wordpress.org/plugins/optimize-more/)** – A DIY WordPress
   Page Speed Optimization Pack. Features:
    - **Load CSS Asynchronously** – selectively load CSS file(s) asynchronously 
      on selected post/page types.
    - **Delay CSS and JS until User Interaction** – selectively delay CSS/JS load
      until user interaction on selected post/page types.
    - **Preload Critical CSS, JS, and Font Files** – selectively preload critical
      CSS/JS/Font file(s) on selected post/page types.
    - **Remove Unused CSS and JS Files** – selectively remove unused CSS/JS file(
      s) on selected post/page types.
    - **Load Gutenberg CSS conditionally** – Load each CSS of the core blocks will
      only get enqueued when the block gets rendered on a page.
    - **Advance Defer JS** – hold JavaScripts load until everything else has been
      loaded. Adapted from the legendary **varvy’s defer js** method _*recommended
      for defer loading 3rd party scripts like ads, pixels, and trackers_
    - **Defer JS** – selectively defer loading JavaScript file(s) on selected post/
      page types.
    - **Remove Passive Listener Warnings** – Remove the “Does not use passive listeners
      to improve scrolling performance” warning on Google PageSpeed Insights
 * **[Lazyload, Preload, and more!](https://wordpress.org/plugins/lazyload-preload-and-more/)**–
   This tiny little plugin (around **14kb** zipped) will automatically:
    - **lazyload** your below the fold images/iframes/videos,
    - **preload** your featured images,
    - and **add `loading="eager"`** to your featured image and all images that have`
      no-lazy` or `skip-lazy` class.
 * **[Shop Extra](https://wordpress.org/plugins/shop-extra/)** – A lightweight plugin
   to optimize your WooCommerce & Business site:
    - **Floating WhatsApp Chat Widget** (can be use without WooCommerce),
    - **WhatsApp Order Button for WooCommrece**,
    - **Hide/Disable WooCommerce Elements**,
    - **WooCommerce Strings Translations**,
    - and many more.
 * **[Animate on Scroll](https://wordpress.org/plugins/animate-on-scroll/)** – Animate
   any Elements on scroll using the popular AOS JS library simply by adding class
   names. This plugin helps you integrate easily with AOS JS library to add any 
   AOS animations to WordPress. Simply add the desired AOS animation to your element
   class name with “aos-” prefix and the plugin will add the corresponding aos attribute
   to the element tag.

 

## 스크린샷

 * [[
 * Image Lightbox using this plugin
 * [[
 * Video Lightbox using this plugin
 * [[
 * Simple hover CSS provided by this plugin (not enabled by default)

## 설치

#### From within WordPress

 1. Visit `Plugins > Add New`
 2. Search for `Image & Video Lightbox` or `Arya Dhiratara`
 3. Activate the plugin from your Plugins page

#### Manually

 1. Download the plugin using the download link in this WordPress plugins repository
 2. Upload the plugin folder to your `/wp-content/plugins/` directory
 3. Activate the plugin from your Plugins page

## FAQ

### Why using FSlightbox library?

It’s lightweight (around 9kb *gzip), no dependencies, and since I love to delaying
JavaScripts until user interaction, this is the only library I found that works 
when the JS is delayed.

### Can this plugin works with other Image or Video Block?

Just try it. You can use filters like the example I wrote in the plugin description
above.

### Can I exclude specific image?

Yes. Just add `no-lightbox` class to the image/video elements.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Image & Video Lightbox”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Arya Dhiratara ](https://profiles.wordpress.org/aryadhiratara/)

[자국어로 “Image & Video Lightbox”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/image-video-lightbox)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/image-video-lightbox/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/image-video-lightbox/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/image-video-lightbox/)을 [RSS](https://plugins.trac.wordpress.org/log/image-video-lightbox/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.0.0

 * Initial release

## 기초

 *  버전 **1.0.0**
 *  최근 업데이트: **3년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 5.8 또는 그 이상 **
 *  다음까지 시험됨: **6.2.9**
 *  PHP 버전 ** 7.4 또는 그 이상 **
 *  언어
 * [English (US)](https://wordpress.org/plugins/image-video-lightbox/)
 * 태그:
 * [blocks](https://ko.wordpress.org/plugins/tags/blocks/)[gallery](https://ko.wordpress.org/plugins/tags/gallery/)
   [image](https://ko.wordpress.org/plugins/tags/image/)[lightbox](https://ko.wordpress.org/plugins/tags/lightbox/)
   [video](https://ko.wordpress.org/plugins/tags/video/)
 *  [고급 보기](https://ko.wordpress.org/plugins/image-video-lightbox/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

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

[모든  리뷰 보기](https://wordpress.org/support/plugin/image-video-lightbox/reviews/)

## 기여자

 *   [ Arya Dhiratara ](https://profiles.wordpress.org/aryadhiratara/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/image-video-lightbox/)