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 Carousel
      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.

      Elementor Page Templates

      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

      WP Adminify

      Take control of your WordPress dashboard. Customize the admin experience.
      Admin Bar Editor

      Admin Bar Editor

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

      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

      Master Blocks

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

      WP Spotlight

      Instantly search and access admin features, posts, and settings from anywhere.
  • Themes
  • Help
    • Get Support
    • Documentation
    • Facebook Community
    • Changelogs
  • Blog
Pricing
🇺🇸EN
  • 🇺🇸EN
  • 🇸🇦AR
  • 🇧🇩BN
  • 🇩🇰DA
  • 🇩🇪DE
  • 🇪🇸ES
  • 🇫🇷FR
  • 🇮🇳HI
  • 🇰🇷KO
  • 🇵🇹PT
  • 🇷🇺RU
  • 🇨🇳ZH

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

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

Extensions

  • Icon Library Settings
  • Mega Menu Settings
  • Which Element Extension Settings
  • Post/Page Duplicator Extension Settings
  • Grid Line Extension Settings
  • Glassmorphism Extension Settings
  • Tooltip Extension Settings
  • Wrapper Link Settings
  • Floating Effects Extension Settings
  • Dynamic Tags Settings
  • Display Conditions Extension Settings
  • Entrance Animation Settings
  • Custom Breakpoints Settings
  • Animated Gradient BG Extension Settings
  • Reveal Extension Settings
  • Particles Extension Settings
  • Background Slider Extension Settings
  • Transforms Extension Settings
  • Rellax Extension Settings
  • Positioning Extension Settings
  • Custom CSS Settings

Widget Builder

  • Conditions
  • Twig Syntax
  • Settings Panel Introduction
  • Divider
  • Text Shadow
  • Select2
  • Border
  • Heading
  • Tabs
  • Repeater
  • Visual Choice
  • Background
  • Dimensions
  • Box Shadow
  • Slider
  • Icons
  • Gallery
  • Media
  • Popover Toggle
  • URL Field
  • Date Time
  • Typography
  • Font
  • Color Field
  • Choose
  • Select
  • Switcher
  • Hidden
  • Code
  • WYSIWYG
  • Textarea Field
  • Number
  • 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 Jemee
Updated on September 17, 2026

4 min read

The Media field adds an image picker to a custom widget built with the Master Addons Widget Builder. Editors choose an image from the Media Library or upload a new one in Elementor, and your template prints its URL, ID or alt text. Use it for profile photos, logos, hero images, product shots and any other single image slot.

Media is one of the fields you can use in the free version’s Widget Builder. The free plugin includes a limited Widget Builder, and the full set of fields comes with Master Addons Pro.

Profile card built with the Widget Builder Media field showing a round photo and a name

What the Media field does #

  • It adds Elementor’s image box to your widget’s panel, with a Choose Image button.
  • Choose Image opens the WordPress media window, where editors upload a file, pick one from the Media Library or insert one from a URL.
  • The field stores the image’s url, id and alt text, and your template prints whichever it needs.
  • It works in the HTML tab and the CSS tab, for example as a background image.

If you haven’t built a widget yet, read the Widget Builder overview first.

Before you start #

  • WordPress with Elementor installed and active.
  • Master Addons for Elementor installed and active. The installation guide covers setup.
  • A widget open in the Widget Builder. The example in this guide is a “Profile Card” widget with a Media field named profile_photo and a Text field for the name.

How to add a Media field #

  1. Go to Master Addons > Widget Builder and open your widget.
  2. On the Content tab, add a section, for example “Profile”.
  3. Type media in the field search box on the left.
  4. Drag Media into the section. Its settings open in the left sidebar.
Media field found by searching media in the Master Addons Widget Builder with Profile Photo and Name fields in a Content section

Media field options explained #

Media field options with Label, Name, Description and the Media Types list opened
  • Label is the text above the image box in Elementor, for example “Profile Photo”.
  • Name is the field’s unique ID and the start of its tokens, so profile_photo gives {{ profile_photo.url }}. Letters, numbers and underscores only.
  • Description appears under the image box in Elementor.
  • Media Types lists Image (the default), Video, Audio, PDF, SVG, Spreadsheet, Document, Presentation and Archive. In our tests this setting didn’t reach Elementor. A field set to Video still showed up as a normal image picker, so treat the Media field as an image field.

There’s no default image setting, so a new copy of the widget starts with no image until an editor picks one. The common settings further down work as they do on other fields.

Print the image in your template #

The field holds several values, and you print each one with a dot:

  • {{ profile_photo.url }} is the image file URL. {{ profile_photo }} on its own prints the same URL.
  • {{ profile_photo.id }} is the image’s Media Library ID.
  • {{ profile_photo.alt }} is the alt text the image had in the Media Library when the editor picked it.

Wrap the <img> tag in a check, so nothing prints while the field is empty:

{% if profile_photo.url %}
  <img class="profile-photo" src="{{ profile_photo.url }}" alt="{{ profile_photo.alt }}">
{% endif %}
Widget HTML printing profile_photo.url and profile_photo.alt inside an if check

The token works in the CSS tab too, for example for a background image:

.profile-card {
  background-image: url('{{ profile_photo }}');
}

If your image styles don’t apply, make the selector more specific. Elementor has its own rules for images inside widgets, and in our tests .profile-photo alone didn’t win against them, while .profile-card .profile-photo did.

Click Save Settings when you’re done.

Use the Media control in Elementor #

Add the widget to a page, or reload the editor if the page was already open. The image box shows the current image. Hover over it and click Choose Image to change it, or use the trash icon to clear it.

Media control in the Elementor panel with a selected photo and the Choose Image button

The Insert Media window opens. Upload a file under Upload files, pick one under Media Library, or use Insert from URL. The details panel on the right shows the image’s Alt Text, which is what {{ profile_photo.alt }} prints. Fill it in there before you click Select.

Elementor Insert Media window with a photo selected in the Media Library and its Alt Text field

Common use cases #

  • Profile photos and team member cards.
  • Logos in headers, footers and client lists.
  • Hero and banner images, as an <img> tag or a CSS background.
  • Product or feature images inside cards.

Tips for working with the Media field #

  • Always guard the <img> tag with {% if profile_photo.url %} so an empty field doesn’t leave a broken image.
  • Print {{ profile_photo.alt }} in the alt attribute, and add alt text in the Media Library before picking the image.
  • Use object-fit: cover with a fixed width and height when images of different shapes need to line up.
  • Give image rules two classes, such as .profile-card .profile-photo, so Elementor’s own image styles don’t override them.
  • For several images, use the Gallery field. For icons or SVG symbols, use the Icons field.

Frequently Asked Questions #

Is the Media field available in the free version?

Yes. Media is one of the fields you can use in the free version’s Widget Builder. The full set of Widget Builder fields comes with Master Addons Pro.

What does {{ profile_photo }} print?

The image URL. It’s the same as {{ profile_photo.url }}. Use .id for the attachment ID and .alt for the alt text.

Why is my alt text empty?

The field copies the alt text the image has in the Media Library when it’s picked. Add Alt Text in the Insert Media window, then select the image again.

Can I use the Media field for videos or PDFs?

Not reliably. In our tests the Media Types setting didn’t change the Elementor control, which stayed an image picker. Use a URL field for links to other files.

Why doesn’t my CSS change the image size?

Elementor applies its own styles to images inside widgets. Use a more specific selector, such as .profile-card .profile-photo, for your width, height and border radius.

Wrapping up #

Add the Media field, print {{ field_name.url }} and {{ field_name.alt }} inside an {% if %} check, and give your image styles a specific selector. Editors then pick or upload images straight from Elementor. For a link to go with the image, add a URL field, and check pricing for what each plan includes.

What are your Feelings

Share This Article :

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

How can we help?

Updated on September 17, 2026
GalleryPopover Toggle
Table of Contents
  • What the Media field does
  • Before you start
  • How to add a Media field
  • Media field options explained
  • Print the image in your template
  • Use the Media control in Elementor
  • Common use cases
  • Tips for working with the Media field
  • Frequently Asked Questions
    • Is the Media field available in the free version?
    • What does {{ profile_photo }} print?
    • Why is my alt text empty?
    • Can I use the Media field for videos or PDFs?
    • Why doesn't my CSS change the image size?
  • Wrapping up

Join 30,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

80+ 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
Support
  • Support Forum
  • Contact US
  • Join Community
  • Blog
  • Video Reviews
Resources
  • My Account
  • Changlogs
  • Documentation
  • Video Tutorials
  • Toolz.dev
Navigate
  • Apply for Affiliate
  • Terms of Use
  • Refund Policy
  • Privacy Policy
  • About Us