Master Addons
  • Widgets
    • Changelogs
      Source Code NEW PRO
      Caldera Forms
      Logo Slider
      Table of Contents
      Gravity Forms
      Transforms PRO
      Restrict Content PRO
      Pricing Table
      Ninja Form
      Mailchimp
      Tooltip
      Popup Trigger NEW PRO
      Which Element NEW
      Creative Button
      Creative Links NEW
      Domain Search HOT PRO
      Dual Heading HOT
      Flipbox
      Animated Gradient BG HOT PRO
      Image Hotspot PRO
      Infobox
      News Ticker PRO
      Particles
      Progress Bar
      Off-Canvas Content NEW PRO
      Reading Progress Bar HOT
      Custom JS
      Blockquote
      Counter Up
      Image Hover Effects
      Reveal NEW PRO
      Rellax PRO
      Positioning
      Image Comparison
      Tabs
      Toggle Content HOT PRO
      Post/Page Duplicator FREE
      Floating Effects PRO
      Mega Menu HOT
      Custom CSS HOT
      Gradient Headline
      Advanced Image
      Nav Menu
      Tooltips
      Comparison Table PRO
      Glassmorphism
      Featured Product PRO
      Image Carouse
      Gallery Slider NEW PRO
      Dynamic Tags NEW
      Countdown Timer
      Current Time
      Patterns
      Wrapper Link
      Timeline
      Team Member
      Contact Form 7
      Advanced Accordion
      Animated Headlines
      Blog
      Business Hours
      Call To Action
      Progress Bars
      Background Slider
      Team Slider
      Dynamic Table
      Grid Line PRO
      WP Forms
      Search
      We Form
      Entrance Animation NEW PRO
      Display Conditions PRO
      Filterable Image Gallery
      WP Forms
      Custom Breakpoints NEW
  • Features
    • Theme Builder

      Design site-wide templates for a consistent look across every page of your website.

      Popup Builder

      Create engaging popups, modals, and announcement bars - to capture leads.

      Widget Builder

      Expand Elementor with advanced custom widgets to build more dynamic layouts.

      Mega Menu Builder

      Create multi-column menus with icons and images for superior navigation.

      Custom Css

      Apply your own CSS for pixel-perfect styling beyond default design options.

      Dynamic Tags

      Insert dynamic content like post titles and custom fields directly into designs.

      Display Conditions

      Control element visibility based on user role, device, time, and other rules.

      Icons Library

      Choose from thousands of built-in icons to enhance visuals and consistency.

      Animation

      Add scroll, hover, entrance, and much more animations to bring designs to life.
  • Template Kits
    • Template Kits

      Professionally designed full-page template Kit. Import and customize in seconds.

      Ready Sections

      Pre-built content sections and rows. Drag, drop, and customize instantly.

      Ready Popups

      Different types of High-converting popup designs. Import and launch quickly.

      Ready Pages

      Complete page layouts for any purpose. Start editing immediately.

      Ready Header

      Multiple modern header designs. Import and adapt to your brand.

      Ready Footer

      Fully designed footers for different websites. Add functionality and style in clicks.
  • Brands
    • WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.

      Admin Bar Editor

      Customize the WordPress admin bar for a cleaner, more personalized workspace.

      Loginfy

      Customize your WordPress login page with branding, styles, and security enhancements.

      Rolemaster Suite

      Manage user roles and permissions with precision for better security and workflow.

      Master Blocks

      Expand the Gutenberg editor with advanced custom blocks for more creative layouts.

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Documentation
    • Facebook Community
    • Changelogs
  • Blog
  • Widgets
    • Changelogs
      Source Code NEW PRO
      Caldera Forms
      Logo Slider
      Table of Contents
      Gravity Forms
      Transforms PRO
      Restrict Content PRO
      Pricing Table
      Ninja Form
      Mailchimp
      Tooltip
      Popup Trigger NEW PRO
      Which Element NEW
      Creative Button
      Creative Links NEW
      Domain Search HOT PRO
      Dual Heading HOT
      Flipbox
      Animated Gradient BG HOT PRO
      Image Hotspot PRO
      Infobox
      News Ticker PRO
      Particles
      Progress Bar
      Off-Canvas Content NEW PRO
      Reading Progress Bar HOT
      Custom JS
      Blockquote
      Counter Up
      Image Hover Effects
      Reveal NEW PRO
      Rellax PRO
      Positioning
      Image Comparison
      Tabs
      Toggle Content HOT PRO
      Post/Page Duplicator FREE
      Floating Effects PRO
      Mega Menu HOT
      Custom CSS HOT
      Gradient Headline
      Advanced Image
      Nav Menu
      Tooltips
      Comparison Table PRO
      Glassmorphism
      Featured Product PRO
      Image Carouse
      Gallery Slider NEW PRO
      Dynamic Tags NEW
      Countdown Timer
      Current Time
      Patterns
      Wrapper Link
      Timeline
      Team Member
      Contact Form 7
      Advanced Accordion
      Animated Headlines
      Blog
      Business Hours
      Call To Action
      Progress Bars
      Background Slider
      Team Slider
      Dynamic Table
      Grid Line PRO
      WP Forms
      Search
      We Form
      Entrance Animation NEW PRO
      Display Conditions PRO
      Filterable Image Gallery
      WP Forms
      Custom Breakpoints NEW
  • Features
    • Theme Builder

      Design site-wide templates for a consistent look across every page of your website.

      Popup Builder

      Create engaging popups, modals, and announcement bars - to capture leads.

      Widget Builder

      Expand Elementor with advanced custom widgets to build more dynamic layouts.

      Mega Menu Builder

      Create multi-column menus with icons and images for superior navigation.

      Custom Css

      Apply your own CSS for pixel-perfect styling beyond default design options.

      Dynamic Tags

      Insert dynamic content like post titles and custom fields directly into designs.

      Display Conditions

      Control element visibility based on user role, device, time, and other rules.

      Icons Library

      Choose from thousands of built-in icons to enhance visuals and consistency.

      Animation

      Add scroll, hover, entrance, and much more animations to bring designs to life.
  • Template Kits
    • Template Kits

      Professionally designed full-page template Kit. Import and customize in seconds.

      Ready Sections

      Pre-built content sections and rows. Drag, drop, and customize instantly.

      Ready Popups

      Different types of High-converting popup designs. Import and launch quickly.

      Ready Pages

      Complete page layouts for any purpose. Start editing immediately.

      Ready Header

      Multiple modern header designs. Import and adapt to your brand.

      Ready Footer

      Fully designed footers for different websites. Add functionality and style in clicks.
  • Brands
    • WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.

      Admin Bar Editor

      Customize the WordPress admin bar for a cleaner, more personalized workspace.

      Loginfy

      Customize your WordPress login page with branding, styles, and security enhancements.

      Rolemaster Suite

      Manage user roles and permissions with precision for better security and workflow.

      Master Blocks

      Expand the Gutenberg editor with advanced custom blocks for more creative layouts.

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Documentation
    • Facebook Community
    • Changelogs
  • Blog
Purchase Now

Getting Started

  • Can’t see the Master Addon Element inside Elementor Page editor?
  • How To Apply For an Affiliate Account?
  • Active Pro version
  • Installing Plugin

Addons

  • Off-Canvas Content
  • Logo Slider
  • Progress Bars
  • Image Carousel
  • Featured Product
  • Comparison Table
  • Source Code
  • Advanced Image
  • Gradient Headline
  • Gallery Slider
  • Toggle Content
  • Infobox
  • Timeline
  • Dynamic Table
  • Mailchimp
  • Blockquote
  • Changelogs
  • Countdown Timer
  • Current Time
  • Search
  • Filterable Image Gallery
  • Team Slider
  • Counter Up
  • Restrict Content
  • Table of Contents
  • Image Hotspot
  • Image Comparison
  • News Ticker
  • Image Hover Effects
  • Tabs
  • Pricing Table
  • Navigation Menu
  • Domain Search
  • Flipbox
  • Tooltip
  • Creative Links
  • Business Hours
  • Contact Form 7
  • Creative Button
  • Animated Headlines
  • Advanced Accordion
  • Call to Action
  • Progress Bar
  • Blog
  • Team Member
  • Dual Heading

Extensions

  • Which Element
  • Post Duplicator
  • Grid Line
  • Glassmorphism
  • Tooltip
  • Wrapper Link
  • Floating Effects
  • Dynamic Tags
  • Display Conditions
  • Entrance Animation
  • Custom Breakpoints
  • Animated Gradient Background
  • Reveal
  • Particles
  • Background Slider
  • Transforms
  • Rellax
  • Positioning
  • Custom CSS

Widget Builder

  • Widget Builder Settings Panel Introduction
  • Divider
  • Text Shadow
  • Select2
  • Border
  • Heading
  • Tabs
  • Repeater
  • Visual Choice
  • Background
  • Dimensions
  • Box Shadow
  • Slider
  • Icons
  • Gallery
  • Media
  • Popover Toggle
  • Widget Builder URL Field
  • Date Time
  • Typography
  • Font
  • Widget Builder Color Field
  • Choose
  • Select
  • Switcher
  • Hidden
  • Code
  • WYSIWYG
  • Widget Builder Textarea Field
  • Number
  • Widget Builder Text Field

Theme Builder

  • Comment Form
  • 404
  • Search
  • Archive
  • Single
  • Footer
  • Header

Popup Builder

  • How to Open a Popup After Inactivity in Elementor
  • How to Show an Exit Intent Popup in Elementor
  • How to Open a Popup on Scroll to a Specific Element in Elementor
  • How to Open a Popup on Scroll in Elementor
  • How to Open a Popup on Click in Elementor
  • How to open a popup on page load?
  • Popup Settings & Options

Template Kit

  • How to Import Template Kits in Master Addons
  • How to Disable Elementor Default Fonts and Colors
  • Import Elementor Template Kits
View Categories
  • Home
  • Docs
  • Widget Builder
  • Gallery

Gallery

Roy
Updated on July 7, 2026

6 min read

The Gallery option adds a multi-image selection control to your custom widget, allowing users to create and manage a collection of images from the WordPress Media Library. It’s designed for handling multiple images as a single group.

Why would someone use it in a custom widget? #

Use this control when your widget’s functionality depends on a set of images rather than a single one. This is essential for creating image sliders, lightbox galleries, logo carousels, portfolio grids, client showcases, or any feature that displays multiple images in a structured layout.

Where This Option Appears #

  • In Widget Builder: You add this control in the Content tab.
  • In the Elementor Editor: Once saved, it appears as an interactive gallery manager. Users can click “Add Images” to open the Media Library, select multiple images, and see them displayed as a thumbnail grid within the control for easy reordering or removal.

Available Settings #

Based on the provided screenshots, here are the configurable settings for the Gallery control:

Basic Settings #

  • Label: The name of the control (e.g., “Image Slider”, “Portfolio Gallery”).
  • Name: The unique machine-readable ID (like image_gallery) for the dynamic shortcode.
  • Description: Optional text to describe the gallery’s purpose.
  • The interface includes an “Add Images” button for users to build their collection. The preview shows “3 Images Selected,” indicating it displays the current state.

Advanced Settings #

  • Show Label, Label Block, Responsive Control: Standard visibility and layout options. Responsive Control could allow defining different galleries or image sizes per device.
  • Dynamic Support: A powerful feature. If enabled, the gallery could be populated dynamically from a source like a post’s gallery field or an ACF gallery field.
  • Frontend Available: When enabled, the array of gallery image data (URLs, IDs, captions) is passed to your widget’s frontend JavaScript, which is crucial for building interactive sliders or lightboxes.
  • Separator, Conditions, Control Classes, Selector: Standard advanced options.

Generated Shortcode #

When you add a Gallery control with the Name portfolio_gallery, Widget Builder generates a shortcode like: {{portfolio_gallery}}.

  • What it represents: This shortcode outputs structured data for the collection of selected images. It typically provides an array or a list of image objects, each containing properties like the image URL, ID, alt text, and caption.
  • Where to use it: This data is most useful in your HTML Panel (to loop through and render image tags) and critically in your JS Panel (to power sliders, lightboxes, or grids).
    • HTML/JS Panel: You would use JavaScript or the builder’s templating logic to iterate over the {{portfolio_gallery}} data and generate HTML for each image.

How to Use It: A Practical Example #

Let’s create a basic “Image Slider” widget.

  1. In Widget Builder’s Content tab, add a Gallery control.
  2. Set the Label to Slider Images. The Name will auto-fill as slider_images.
  3. Ensure Frontend Available is enabled in the Advanced tab.
  4. In your HTML panel, create a container: <div class="slider-container" id="my-slider"></div>.
  5. In your JS Panel, write JavaScript to:
    • Access the gallery data from slider_images.
    • Dynamically create <img> elements for each image.
    • Append them to the slider-container.
    • Initialize a slider/carousel library (like Swiper.js, linked in the Includes panel).
  6. Style the container and images in your CSS panel.

In the editor, users can add, remove, and reorder images in the gallery. Your JavaScript will use that collection to build the working slider on the front end.

Common Use Cases #

  • Image Sliders & Carousels: The most common use case for displaying a rotating set of images.
  • Portfolio or Project Grids: Displaying multiple project screenshots or photos in a masonry or grid layout.
  • Client Logo Showcases: Creating a row or grid of client logo images.
  • Lightbox Galleries: Creating a grid of thumbnails that open into a full-screen lightbox viewer.
  • Dynamic Galleries: Using Dynamic Support to pull galleries from custom fields on posts or pages.

Helpful Tips #

  • JavaScript is Required: Unlike the single Media control, a Gallery’s output is a data set. To display it, you will almost always need to write JavaScript in your JS Panel to process the images and generate HTML.
  • Plan Your Data Structure: Understand what image properties (URL, ID, caption) the {{gallery_name}} shortcode makes available, so you can use them correctly in your code.
  • Use with External Libraries: For features like sliders or lightboxes, you will need to include the corresponding JS/CSS library (e.g., Swiper, Fancybox) in the Includes panel of the Widget Builder.
  • Consider Image Optimization: For galleries displaying many images, consider lazy-loading techniques in your JavaScript to improve page load performance.

The Gallery control enables the creation of rich, visual, and interactive multi-image widgets, moving beyond single images to handle curated collections.

Frequently Asked Questions #

What is the Gallery control in the Master Addons Widget Builder?

The Gallery control adds a multi-image selection field to a custom widget, letting editors build and manage a collection of images from the WordPress Media Library as a single group. Added in the Content tab, it appears in Elementor as an Add Images button with a thumbnail grid for reordering and removing images.

How is the Gallery control different from the Media control?

The Media control handles a single file and usually outputs one URL, while the Gallery control returns a collection of image objects with properties like URL, ID, alt text, and caption. Because of that, displaying a gallery almost always requires JavaScript to loop over the data, whereas a single Media value can drop straight into an img src.

How do I display the images from a Gallery field?

Enable Frontend Available, then in your JS panel read the gallery data, for example from slider_images, create img elements for each item, and append them to a container in your HTML. For sliders or lightboxes, initialize a library such as Swiper or Fancybox added through the Includes panel.

Can a Gallery field be populated dynamically?

Yes. Enabling Dynamic Support lets the gallery pull its images from a dynamic source such as a post’s gallery field or an ACF gallery field, instead of being hand-picked in each widget. This is useful for portfolio or project layouts driven by custom fields.

What image data does the {{portfolio_gallery}} shortcode provide?

For a control named portfolio_gallery, the {{portfolio_gallery}} token outputs structured data for the whole collection, typically an array of image objects with URL, ID, alt text, and caption. Plan your HTML or JavaScript around those properties so you reference each image’s data correctly.

What are your Feelings

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on July 7, 2026
IconsMedia
Table of Contents
  • Why would someone use it in a custom widget?
  • Where This Option Appears
  • Available Settings
    • Basic Settings
    • Advanced Settings
  • Generated Shortcode
  • How to Use It: A Practical Example
  • Common Use Cases
  • Helpful Tips
  • Frequently Asked Questions
    • What is the Gallery control in the Master Addons Widget Builder?
    • How is the Gallery control different from the Media control?
    • How do I display the images from a Gallery field?
    • Can a Gallery field be populated dynamically?
    • What image data does the {{portfolio_gallery}} shortcode provide?

Join 40,000+ Web Creators Who Trust Master Addons

Get all the premium widgets and templates you desire, built with clean code that keeps your site fast. Ditch the bloat, not the features.

Try Live Demo
Join The Community
Master Addons for Elementor
Master Addons Logo

110+ Premium Widgets & Lifetime Updates – Build Beyond Limits. An Exclusive Creation by Pixar Labs

Facebook-f Twitter Youtube Wordpress
Features
  • Template kits
  • Template Library
  • Widget Builder
  • Theme Builder
  • Mega Menu Builder
  • Template kits
  • Template Library
  • Widget Builder
  • Theme Builder
  • Mega Menu Builder
Support
  • Support Forum
  • Contact US
  • Join Community
  • Blog
  • Support Forum
  • Contact US
  • Join Community
  • Blog
Resources
  • Apply For Affiliate
  • Documentation
  • Video Tutorials
  • My Account
  • Change Log
  • Apply For Affiliate
  • Documentation
  • Video Tutorials
  • My Account
  • Change Log
Navigate
  • Terms of Use
  • Refund Policy
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Privacy Policy