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

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

  • Mega Menu
  • 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

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

Hidden

Roy Jemee
Updated on August 6, 2026

5 min read

The Hidden field is the one control in the Master Addons Widget Builder that editors never see. It holds a fixed value you set once in the builder, say a version string or a layout key. The value travels with the widget and prints through a template token, but no input for it appears anywhere in the Elementor panel.

Even the Hidden field supports Conditions, and its stored value prints through the Twig-syntax template engine like any other token, so you can reference it in {% if %} checks across your template. Both guides cover the details.

That makes it the right home for constants your template needs but users must not edit. Anything a curious client could change by accident stays out of reach. Your HTML, CSS, and JS panels can still read it like any other value.

What the Hidden field does #

  • Stores a fixed string value defined in the builder, with no visible control in Elementor.
  • Prints that value anywhere in the widget’s HTML, CSS, or JS panel through {{ your_field_name }}.
  • Keeps configuration constants out of the editing UI, so they cannot be changed per page.
  • Behaves like a text value in template logic, so conditionals such as {% if mode == 'embed' %} work.

If this is your first custom widget, read the Widget Builder overview before this page; it covers the editor layout the field docs assume.

Before you start #

  • WordPress with Elementor installed and active.
  • Master Addons for Elementor installed and active. New to the plugin? See the installation guide.
  • A custom widget open in the Widget Builder editor. Our example is a map embed widget where a Hidden field named map_style_key carries the fixed map style identifier the embed script expects.

How to add a Hidden field #

Drag the Hidden field from the fields panel into any section. The tab does not matter here, since nothing renders in the panel either way. Its options open on the left as soon as it lands.

Hidden field options explained #

The option list is short by design:

  • Label: a name for your own reference inside the builder. It never shows in Elementor.
  • Name: the unique identifier your templates refer to. Letters, numbers, and underscores only, for example map_style_key.
  • Default: the value the field holds. Since there is no UI to change it later, this is effectively the value, full stop.

Connect the Hidden field with its token #

The Hidden field is a token field. Print it exactly like a text value, in any of the three panels:

<!-- HTML panel -->
<div class="ma-map" data-style="{{ map_style_key }}"></div>

// JS panel
var styleKey = "{{ map_style_key }}";
initMap(styleKey);

Template logic can also branch on it. If you ship two internal modes of the same widget, a Hidden field can pick the branch without exposing the choice:

{% if widget_mode == 'compact' %}
<div class="ma-map ma-map--compact"></div>
{% else %}
<div class="ma-map ma-map--full"></div>
{% endif %}

One quiet failure mode to know about: if you rename the field later, every token still pointing at the old name prints an empty string. Nothing errors, the widget just renders with a blank where the constant used to be. After a rename, search all three panels for the old name before you save.

Watch out: a Hidden field is invisible, not secret. Its value still renders into the page markup or script that visitors can view-source. Keep private API keys and credentials out of it; it is for configuration constants, not secrets.

Use the Hidden field in Elementor #

Add your custom widget to a page in Elementor. The panel shows every other control you defined, and nothing for the Hidden field. That absence is the feature. The value is already applied, and the rendered widget reflects it from the first drop.

Common use cases #

  • Layout keys that internal CSS or JS branches on, fixed per widget.
  • Version strings stamped into a data attribute for debugging shipped widgets.
  • API mode flags such as an embed type the widget’s script reads.
  • Fixed class name fragments printed into the markup so a widget family shares styling hooks.
  • Template branch switches when you export one widget in two internal variants.

Tips for working with the Hidden field #

  • Name it like the constant it is. map_style_key tells the next maintainer what the token means; hidden_1 does not.
  • Set the Default before saving. There is no second chance from the Elementor side; an empty Default renders an empty string everywhere the token appears.
  • Quote it in JS. The value is a string, so write var key = "{{ map_style_key }}"; with quotes.
  • Prefer a visible field once users need control. The moment a value should differ per page, swap the Hidden field for a Text or Select field instead of asking users to edit widget internals.
  • No secrets. The value ends up in public page output, so treat it as visible to anyone who reads the source.

Frequently Asked Questions #

What is the Hidden field in the Master Addons Widget Builder?

The Hidden field stores a fixed value inside a custom Elementor widget without rendering any control in the panel. You set the value once in the builder, and templates print it with {{ field_name }} in the HTML, CSS, or JS panel. Editors cannot see or change it.

Why would I use a Hidden field instead of hardcoding the value in my HTML?

Centralization. When the same constant appears in several places across the HTML, CSS, and JS panels, one Hidden field keeps them in sync, and updating the widget later means changing one Default instead of hunting through three panels.

Can users change a Hidden field’s value in Elementor?

No. The field renders no input in the panel, so its value is fixed at whatever Default you set in the builder. Changing it requires editing the widget in the Widget Builder itself.

Can I use the Hidden field’s value in template conditionals?

Yes. It behaves like any text value, so {% if widget_mode == 'compact' %} works. This lets one widget definition carry an internal switch that users never interact with.

Is the Hidden field’s value private?

No. It is hidden from the editing panel, but it renders into the page like any other token, where anyone can read it in the page source. Do not store API secrets or credentials in it.

Is the Hidden field available in the free version?

The Hidden field belongs to the free control set, alongside basics like Text and Textarea. The full Widget Builder experience with the complete field library is part of Master Addons Pro; see the pricing page for details.

Wrapping up #

The Widget Builder Hidden field solves a quiet but real problem: values a widget depends on that no editor should touch. Define it once, print its token where needed, and the constant ships with the widget everywhere it is used. When a value should be editable after all, reach for a visible field like Number or Text instead. Explore the rest of the Master Addons widgets and extensions, and see the pricing page 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 August 6, 2026
SwitcherCode
Table of Contents
  • What the Hidden field does
  • Before you start
  • How to add a Hidden field
  • Hidden field options explained
  • Connect the Hidden field with its token
  • Use the Hidden field in Elementor
  • Common use cases
  • Tips for working with the Hidden field
  • Frequently Asked Questions
    • What is the Hidden field in the Master Addons Widget Builder?
    • Why would I use a Hidden field instead of hardcoding the value in my HTML?
    • Can users change a Hidden field's value in Elementor?
    • Can I use the Hidden field's value in template conditionals?
    • Is the Hidden field's value private?
    • Is the Hidden field available in the free version?
  • 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

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