{"id":414050,"date":"2026-11-28T00:30:21","date_gmt":"2026-11-28T00:30:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nitrolitebox\/"},"modified":"2026-11-28T00:30:12","modified_gmt":"2026-11-28T00:30:12","slug":"nitroshock-image-lightbox","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/nitroshock-image-lightbox\/","author":23613450,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.0","stable_tag":"1.2.0","tested":"7.1.5","requires":"5.5","requires_php":"7.4","requires_plugins":null,"header_name":"NitroShock Image Lightbox","header_author":"NitroShock","header_description":"A fast, zero-dependency lightbox for full-size images. Works with any WordPress theme or Oxygen Builder. Auto-detects linked images - no setup needed.","last_updated":"2026-11-28 00:30:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/nitroshock.ai\/nitrolitebox\/","header_author_uri":"https:\/\/nitroshock.ai\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":34,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.0":{"tag":"1.2.0","author":"nitroshock","date":"2026-11-28 00:30:12","revision":3830658}},"upgrade_notice":{"1.1.0":"<p>Adds pan &amp; zoom, class-based gallery grouping, zoom button, and keyboard zoom shortcuts.<\/p>","1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3830658,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3830658,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3830658,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3830658,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3830658,"resolution":"1","location":"assets","locale":"","width":1280,"height":800},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3830658,"resolution":"2","location":"assets","locale":"","width":1280,"height":800},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3830658,"resolution":"3","location":"assets","locale":"","width":922,"height":868}},"screenshots":{"1":"Lightbox open on a single image with caption and close button.","2":"Gallery browsing with image counter and arrow navigation.","3":"Settings page under Settings \u2192 NitroShock Lightbox."}},"plugin_section":[],"plugin_tags":[1004,210,163,237,296029],"plugin_category":[50],"plugin_contributors":[296030],"plugin_business_model":[],"class_list":["post-414050","plugin","type-plugin","status-publish","hentry","plugin_tags-fullscreen","plugin_tags-gallery","plugin_tags-images","plugin_tags-lightbox","plugin_tags-scrolling-lightbox","plugin_category-media","plugin_contributors-nitroshock","plugin_committers-nitroshock"],"banners":{"banner":"https:\/\/ps.w.org\/nitroshock-image-lightbox\/assets\/banner-772x250.png?rev=3830658","banner_2x":"https:\/\/ps.w.org\/nitroshock-image-lightbox\/assets\/banner-1544x500.png?rev=3830658","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/nitroshock-image-lightbox\/assets\/icon-128x128.png?rev=3830658","icon_2x":"https:\/\/ps.w.org\/nitroshock-image-lightbox\/assets\/icon-256x256.png?rev=3830658","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/nitroshock-image-lightbox\/assets\/screenshot-1.png?rev=3830658","caption":"Lightbox open on a single image with caption and close button."},{"src":"https:\/\/ps.w.org\/nitroshock-image-lightbox\/assets\/screenshot-2.png?rev=3830658","caption":"Gallery browsing with image counter and arrow navigation."},{"src":"https:\/\/ps.w.org\/nitroshock-image-lightbox\/assets\/screenshot-3.png?rev=3830658","caption":"Settings page under Settings \u2192 NitroShock Lightbox."}],"raw_content":"<!--section=description-->\n<p><strong>NitroShock Image Lightbox<\/strong> gives every linked image on your site an instant full-screen lightbox - no jQuery, no icon fonts, no external requests. Just one small deferred script and a little CSS, loaded only on pages that have a lightbox image.<\/p>\n\n<h4>Why NitroShock Image Lightbox?<\/h4>\n\n<ul>\n<li><strong>Zero dependencies<\/strong> - pure vanilla JS, nothing extra to load.<\/li>\n<li><strong>Auto-detect<\/strong> - wraps any <code>&lt;a href=\"image.jpg\"&gt;&lt;img&gt;&lt;\/a&gt;<\/code> automatically, exactly as WordPress outputs them.<\/li>\n<li><strong>Oxygen Builder ready<\/strong> - re-scans the page when Oxygen finishes its dynamic render.<\/li>\n<li><strong>Scrolling gallery<\/strong> - group images by CSS class, <code>rel<\/code>, or <code>data-nlb-group<\/code> and swipe\/arrow through them.<\/li>\n<li><strong>Pan &amp; zoom<\/strong> - scroll-wheel, double-click, pinch-to-zoom, drag-to-pan with pointer-anchored zooming.<\/li>\n<li><strong>Keyboard + touch<\/strong> - Arrow keys, Escape, and left\/right swipe all work out of the box.<\/li>\n<li><strong>Preloads<\/strong> adjacent images in the background so navigation feels instant.<\/li>\n<li><strong>GPU-only animations<\/strong> - smooth 60 fps on mobile; respects <code>prefers-reduced-motion<\/code>.<\/li>\n<li><strong>Accessible<\/strong> - <code>role=\"dialog\"<\/code>, <code>aria-modal<\/code>, focus management, focus-visible ring.<\/li>\n<li><strong>Shortcode<\/strong> - <code>[nitrolitebox]<\/code> for full control over any image.<\/li>\n<\/ul>\n\n<h4>Works with<\/h4>\n\n<p>Standard WordPress themes (Twenty Twenty-Five, Astra, GeneratePress, Kadence, Blocksy, OceanWP, etc.), Oxygen Builder, Elementor, Beaver Builder, Bricks, and any page builder that outputs standard linked images.<\/p>\n\n<h4>Shortcode example<\/h4>\n\n<pre><code>[nitrolitebox src=\"https:\/\/example.com\/full.jpg\" thumb=\"https:\/\/example.com\/thumb.jpg\" caption=\"My caption\" group=\"gallery1\"]\n<\/code><\/pre>\n\n<h4>Developer API<\/h4>\n\n<pre><code>`js\n<\/code><\/pre>\n\n<p>\/\/ Open programmatically\nNitroLiteBox.open('https:\/\/example.com\/image.jpg');<\/p>\n\n<p>\/\/ Open a gallery\nNitroLiteBox.open([\n  { src: 'https:\/\/example.com\/a.jpg', caption: 'First' },\n  { src: 'https:\/\/example.com\/b.jpg', caption: 'Second' },\n]);<\/p>\n\n<p>\/\/ Re-scan after dynamic content loads\nNitroLiteBox.refresh();\n\/\/ or dispatch the custom event:\ndocument.dispatchEvent(new CustomEvent('nlb:refresh'));\n    `<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>nitroshock-image-lightbox<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate through <strong>Plugins \u2192 Installed Plugins<\/strong>.<\/li>\n<li>That's it - linked images become lightboxes automatically.<\/li>\n<\/ol>\n\n<p>For settings, visit <strong>Settings \u2192 NitroShock Lightbox<\/strong>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20it%20conflict%20with%20my%20theme%27s%20existing%20lightbox%3F\"><h3>Will it conflict with my theme's existing lightbox?<\/h3><\/dt>\n<dd><p>NitroShock Image Lightbox only activates on links it detects. If your theme ships its own lightbox and already handles those links, disable auto-detect in Settings and use <code>data-nitrolitebox<\/code> attributes or the shortcode on specific elements instead.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20oxygen%20builder%20galleries%3F\"><h3>Does it work with Oxygen Builder galleries?<\/h3><\/dt>\n<dd><p>Yes. The lightbox re-scans the page when Oxygen fires its <code>oxygen-done<\/code> event after a dynamic render. Oxygen's gallery links already follow the standard <code>&lt;a href=\"full.jpg\"&gt;&lt;img&gt;&lt;\/a&gt;<\/code> pattern, so they are picked up automatically.<\/p><\/dd>\n<dt id=\"how%20do%20i%20group%20images%20into%20a%20scrolling%20gallery%3F\"><h3>How do I group images into a scrolling gallery?<\/h3><\/dt>\n<dd><p>Three ways: add a shared CSS class like <code>nlb-group-portfolio<\/code> (new in 1.1), use <code>data-nlb-group=\"my-set\"<\/code>, or let WordPress add the <code>rel<\/code> attribute automatically for gallery blocks.<\/p><\/dd>\n<dt id=\"can%20i%20open%20the%20lightbox%20with%20javascript%3F\"><h3>Can I open the lightbox with JavaScript?<\/h3><\/dt>\n<dd><p>Yes: <code>NitroLiteBox.open('https:\/\/example.com\/image.jpg')<\/code> or pass an array of objects with <code>src<\/code> and <code>caption<\/code> keys.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Renamed to NitroShock Image Lightbox.<\/li>\n<li>Prepared for the WordPress.org plugin directory. Updates now come from WordPress.org; the built-in update checker is removed.<\/li>\n<li>Styles and scripts are now loaded only through the WordPress enqueue functions. The lightbox script is deferred and its small stylesheet is printed inline, so neither blocks rendering. The settings page styles load from their own stylesheet on that page only.<\/li>\n<li>Settings are stored under a new option name, nitrolitebox_settings.<\/li>\n<li>Internal PHP function names now use the full nitrolitebox_ prefix and constants use NITROLITEBOX_.<\/li>\n<li>Settings page text is translatable.<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>The lightbox files now load only on pages that contain a lightbox image (in post content, blocks, shortcodes, widgets, or Oxygen elements) instead of on every page.<\/li>\n<li>New \"Load on every page\" setting restores the old behaviour for image links placed outside those areas, such as hard-coded in a theme template. Setting Extra selectors also loads it everywhere. Developers can use the nitrolitebox_force_load filter.<\/li>\n<li>Saved settings now apply on the front end. Previously the settings page stored them but the lightbox always used the defaults.<\/li>\n<li>Fixed the caption showing as a thin wrapped column beside the image while a large image was still loading. The caption now stays hidden until the image has loaded.<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Replaced typographic dashes with plain hyphens across the plugin output.<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Corrected the Oxygen Builder re-init comment in the plugin output.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Escaping and translator-comment fixes found with Plugin Check.<\/li>\n<li>Fixed the \"Visit Plugin Site\" link in the NitroShock footer card pointing to the wrong plugin when several NitroShock plugins are active.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added full pan &amp; zoom -- scroll-wheel, double-click, pinch-to-zoom, drag-to-pan.<\/li>\n<li>Added class-based gallery grouping -- any shared <code>nlb-group-*<\/code> class auto-groups images.<\/li>\n<li>Added zoom toggle button (magnifier icon, top-right of lightbox).<\/li>\n<li>Added keyboard shortcuts: +\/- zoom, 0 reset zoom.<\/li>\n<li>Esc now resets zoom first before closing.<\/li>\n<li>Navigation arrows dim and disable while zoomed.<\/li>\n<li>Added <code>NitroLiteBox.setZoom()<\/code> and <code>NitroLiteBox.resetZoom()<\/code> to the JS API.<\/li>\n<li>Settings: added Zoom enable\/disable, Max zoom level, Group class prefix fields.<\/li>\n<li>PHP: added <code>zoom<\/code>, <code>zoomMax<\/code>, <code>zoomStep<\/code>, <code>groupClassPrefix<\/code> to options.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"A fast, zero-dependency lightbox for full-size images. Works with any WordPress theme or Oxygen Builder. No setup required.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/414050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=414050"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nitroshock"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=414050"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=414050"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=414050"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=414050"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=414050"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=414050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}