
內容簡介
Lnsel Post Gallery Lightbox 讓使用者可以在 WordPress 編輯器中透過自訂的 meta box 上傳專屬的畫廊圖片,並使用 [lnsel_gallery] 短碼在前端顯示,支援平滑的燈箱效果、鍵盤導航和觸控滑動,提供網格或磚石佈局選擇。
【主要功能】
• 自訂「文章畫廊圖片」meta box
• 編輯器中可拖放重新排序圖片
• 可選擇網格或磚石佈局
• 內建燈箱支援箭頭導航和鍵盤操作
• 完全響應式設計,根據螢幕大小調整列數
• 當未上傳圖片時,畫廊區域完全隱藏
外掛標籤
開發者團隊
原文外掛簡介
Lnsel Post Gallery Lightbox lets you upload a dedicated set of gallery images to any post or page via a custom meta box in the WordPress editor. Those images are then displayed on the front end using the [lnsel_gallery] shortcode — with a smooth lightbox, keyboard navigation, touch swipe support, and a choice of Grid or Masonry layout.
Key Features:
📷 Custom “Post Gallery Images” meta box on every post/page edit screen
🖼 Drag-and-drop image reordering in the editor
⚡ Choose between Grid (uniform tiles) or Masonry (Pinterest-style) layout
🔍 Built-in lightbox with arrow navigation, keyboard (← → Esc), and touch swipe
📱 Fully responsive — 4 → 3 → 2 → 1 columns at breakpoints
🙈 Gallery section is completely hidden when no images are uploaded
🔌 Works with Elementor via the Shortcode widget
No jQuery dependency on the front end — pure vanilla JS
Usage
Basic:
[lnsel_gallery]
Grid layout, 3 columns:
[lnsel_gallery layout=”grid” columns=”3″]
Masonry layout, 3 columns:
[lnsel_gallery layout=”masonry” columns=”3″]
All available attributes:
layout — grid or masonry (default: grid)
columns — 2, 3, or 4 (default: 3)
size — thumbnail, medium, large, or full (default: large)
gap — gap between images in px, number only (default: 10)
