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
  • Media

Media

Roy
Updated on July 7, 2026

6 min read

The Media option adds a media upload and selection control to your custom widget, allowing users to choose files from the WordPress Media Library or upload new ones. It’s the primary way to handle images, videos, audio, and other supported file types.

Why would someone use it in a custom widget? #

Use this control whenever your widget needs to include an image, video, document, or any other media file. This is essential for creating image banners, logo uploaders, background video sections, PDF download buttons, or any widget where visual or file-based content is central.

2. Where This Option Appears #

  • In Widget Builder: You add this control in the Content tab.
  • In the Elementor Editor: Once saved, it appears as a standard Elementor media upload button. Clicking it opens the familiar WordPress Media Library dialog for selection.

3. Available Settings #

Here are the configurable settings for the Media control:

Basic Settings #

  • Label: The name of the control (e.g., “Background Image”, “Company Logo”).
  • Name: The unique machine-readable ID (like bg_image) for the dynamic shortcode.
  • Description: Optional text to guide the user.
  • Media Types: A critical multi-select option. This defines what type of files users can pick:
    • Image: Allows selection of standard image files (JPG, PNG, GIF, etc.).
    • Video: Allows selection of video files (MP4, MOV, etc.).
    • Other Types: May include audio, PDF, or other document formats. By default, it is often set to Image only.

Advanced Settings #

  • Show Label, Label Block, Responsive Control: Standard options. Responsive Control is especially useful for images, allowing different images to be set for different devices.
  • Dynamic Support: A powerful feature. When enabled, the media field can be populated dynamically from sources like a post’s Featured Image, an ACF Image field, or site logo.
  • Frontend Available: If enabled, the media attachment data (URL, ID, alt text) is passed to your widget’s JavaScript.
  • Separator, Conditions, Control Classes, Selector: Standard advanced options.

Generated Shortcode #

When you add a Media control with the Name hero_image, Widget Builder generates the shortcode: {{hero_image}}.

  • What it represents: This shortcode typically outputs the URL of the selected media file (e.g., https://yoursite.com/wp-content/uploads/2025/12/hero.jpg). In some implementations, it might output the attachment ID or an object containing multiple properties.
  • Where to use it:
    • HTML Panel: Use it in src or href attributes: <img src="{{hero_image}}" alt=""> or <video src="{{background_video}}">.
    • CSS Panel: Use it for background images: background-image: url('{{hero_image}}');.

How to Use It: A Practical Example #

Let’s create a simple “Hero Banner” widget with a background image.

  1. In Widget Builder’s Content tab, add a Media control.
  2. Set the Label to Background Image. The Name will auto-fill as background_image.
  3. In Media Types, ensure Image is selected.
  4. In your HTML panel, create a container: <div class="hero-banner"></div>.
  5. In your CSS panel, apply the image:
.hero-banner {
    background-image: url('{{background_image}}');
    background-size: cover;
    min-height: 500px;
}

Now, users can upload or select any image from their library, and it will automatically become the banner’s background.

Common Use Cases #

  • Image Displays: For logos, profile pictures, product images, and banners.
  • Background Media: Setting background images or videos for sections.
  • File Downloads: Creating a button to download a PDF, brochure, or other document (using the URL in a link).
  • Dynamic Images: Using Dynamic Support to automatically pull the current post’s featured image into a blog post grid or single post widget.

Helpful Tips #

  • Restrict Media Types: Use the Media Types setting wisely. If your widget is designed for an image, limit it to Image only to prevent user confusion.
  • Consider Responsive Images: For important images, consider enabling Responsive Control or creating separate controls (e.g., image_tablet, image_mobile) to allow optimization for different screen sizes.
  • Handle Dynamic Data: When using Dynamic Support, your widget’s code should gracefully handle cases where a dynamic source might be empty (e.g., a post with no featured image).
  • Output Might Be an ID: Depending on the builder’s configuration, the shortcode might output the attachment ID instead of the URL. If you need the URL in your HTML/CSS and get an ID, you may need to use a specific dynamic tag format like {{hero_image.url}} – check the builder’s documentation for the exact syntax.

The Media control connects your widget directly to the user’s rich media library, making it easy to build visually dynamic and content-rich components.

Frequently Asked Questions #

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

The Media control adds a file upload and selection field to a custom widget, letting editors choose from the WordPress Media Library or upload new files. It handles images, videos, audio, and documents. Added in the Content tab, it appears in Elementor as the standard media button that opens the Media Library dialog.

How do I output the selected media in my widget?

For a control named hero_image the shortcode is {{hero_image}}, which usually returns the file’s URL. Use it in an attribute like {{hero image}} or for a CSS background such as background-image: url(‘{{hero_image}}’); to display the chosen file.

Can I restrict which file types editors can pick?

Yes. The Media Types multi-select controls what can be selected, with Image, Video, and other formats like audio or PDF. By default it is often Image only. Limiting it to the type your widget needs keeps the control focused and prevents editors from choosing the wrong kind of file.

Does the Media control support dynamic sources like the featured image?

Yes. Enable Dynamic Support and the field can pull from sources such as the post’s Featured Image, an ACF Image field, or the site logo. Because a dynamic source can be empty, design your widget to handle the case where no media is returned.

What if the shortcode returns an attachment ID instead of a URL?

Depending on the configuration, the shortcode may output the attachment ID rather than the URL. When you need the URL in your HTML or CSS, use a property-style token such as {{hero_image.url}}. Check the builder’s documentation for the exact sub-token syntax.

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
GalleryPopover Toggle
Table of Contents
  • Why would someone use it in a custom widget?
  • 2. Where This Option Appears
  • 3. 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 Media control in the Master Addons Widget Builder?
    • How do I output the selected media in my widget?
    • Can I restrict which file types editors can pick?
    • Does the Media control support dynamic sources like the featured image?
    • What if the shortcode returns an attachment ID instead of a URL?

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