Image
  • 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
      Icons Extended
      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
  • 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.
  • Templates

      Ready Template

      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
    • Facebook Community
    • Documentation
    • Changlogs
  • 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
      Icons Extended
      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
  • 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.
  • Templates

      Ready Template

      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
    • Facebook Community
    • Documentation
    • Changlogs
Purchase Now

Getting Started

  • Can’t see the Master Addon Element inside Elementor Page editor?
  • Update Issues For WordPress Core, Theme, & Plugins
  • How To Apply For an Affiliate Account?
  • Upgrade Master Addons Free To Pro
  • How to activate 14 days Free Trial?
  • Active Pro version
  • Installing Plugin

Addons

  • Progress Bars
  • Image Carousel
  • Featured Product Element
  • Elementor Comparison table For Products & Services
  • Source Code Element
  • Advanced Image Element
  • How to Add Gradient Headline in Elementor?
  • Gallery Slider
  • Toggle Content
  • Infobox Element
  • Timeline Element
  • Dynamic Table Element
  • Instagram Feed
  • Mailchimp Element
  • BlockQuote Element
  • Changelog Element
  • Countdown timer
  • Current Time
  • Search Element
  • Filterable Image Gallery
  • Team Members Carousel
  • Counter Up For Elementor
  • Restrict Content For Elementor
  • MA Table of Contents
  • Image Hotspot
  • Image Comparison Element
  • News Ticker Element
  • Image Hover Effects Element
  • Advanced Tabs Element
  • Pricing Table Elementor Free Widget or Element Customization
  • Navigation Menu + Mega Menu
  • Navigation Menu Element
  • How MA Domain Checker Works
  • How to configure FlipBox Element
  • Adding Tooltip in Elementor Editor
  • How to add Creative Links?
  • How to Add Business Hours Elementor Page Builder?
  • How To Edit Contact Form 7
  • How to add Creative Buttons
  • Animated Headline Elementor Page Builder
  • Elementor Accordion Widget
  • Elementor Call To Action Widget Tutorial
  • How To Create and Customize Progressbar In Elementor
  • Blog Element Customization
  • Adding Team Members in Elementor Page Builder
  • Customize Dual Heading In Elementor Page Builder

Extensions

  • Elementor Glassmorphism Effects Extension
  • Tooltip Extension for Elementor by Master Addons
  • Wrapper Link
  • Floating Effects
  • Dynamic Tags
  • Elementor Display Conditions For Browser, User, Time, Many More
  • Entrance Animation
  • Header, Footer, & Comment Builder
  • Custom Elementor Breakpoints Setup & Configuration
  • Animated Gradient Background Extension
  • Reveal Extension
  • Particles Extension
  • Background Slider Extension
  • Transforms Extension
  • Rellax Extension
  • Positioning Extension
  • How to set Rellax Extension in any Element?
  • Custom CSS Extension

Widget Builder

  • Tabs
  • Repeater
  • Visual Choice
  • Background
  • Dimensions
  • Box Shadow
  • Slider
  • Icons
  • Gallery
  • Media
  • Popover Toggle
  • URL
  • Date Time
  • Typography
  • Font
  • Color
  • Choose
  • Select
  • Switcher
  • Hidden
  • Code
  • WYSIWYG
  • Text Area
  • Number
  • Text

Theme Builder

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

Popup Builder

  • After Inactivty
  • Exit Intent Trigger
  • On Page Load Trigger
  • Popup Settings & Options

Template Kit

  • Access and Import Pre-built Template Kits
  • Import Elementor Template Kits
View Categories
  • Home
  • Docs
  • Widget Builder
  • Hidden

Hidden

Image
Roy
Updated on December 18, 2025

5 min read

The Hidden option is a control that adds a non-visual data storage field to your custom widget. It does not create an input field that users can see or interact with in the Elementor editor; instead, it holds a value that can be used internally by your widget’s logic.

Why would someone use it in a custom widget? #

You use a Hidden control to store a fixed or calculated value that influences how your widget works, without cluttering the editor interface. It’s perfect for setting internal flags, version numbers, theme identifiers, or any data parameter that should be set once (by you, the widget creator) and not changed by the end-user.

Where This Option Appears #

  • In Widget Builder: You add and configure this control in the Content tab. It appears in your control list like any other option.
  • In the Elementor Editor: This is the key difference – a Hidden control does not appear at all in the live widget settings panel. It operates silently in the background.

Available Settings #

Here are the configurable settings for the Hidden control:

Basic Settings #

  • Name: The most important setting. This is the unique machine-readable ID (like widget_version or layout_mode) used to create the dynamic shortcode. Since there is no visual label for the user, a clear, descriptive name is crucial for your own code management.
  • Default Value: This is where you set the actual data the control will store (e.g., v2.0, dark, enabled). This value is fixed and cannot be changed by the user in the editor, only by you in the Widget Builder.

Advanced Settings #

  • Conditions: While the control itself is hidden, you can still set conditions for it or more importantly, use its value to control the visibility of other, visible controls. This allows you to create complex logic based on the hidden value.
  • Control Classes: Allows you to add custom CSS classes to the control’s wrapper (which exists in the DOM but is not displayed). This is for advanced developers who may need to target it with specific logic.

Notable Absences: Unlike visual controls, the Hidden option typically lacks settings like Label, Description, Placeholder, Responsive Control, and Dynamic Support. Its purpose is to be a simple, static value holder.

Generated Shortcode #

When you add a Hidden control with the Name data_mode, Widget Builder generates the dynamic shortcode: {{data_mode}}.

  • What it represents: This shortcode is a direct placeholder for the Default Value you set.
  • Where to use it: You can use this shortcode anywhere in your HTML, CSS, or JS panels, just like any other. For example:
    • HTML Panel: As a data attribute: <div data-mode="{{data_mode}}">
    • CSS Panel: In a conditional rule: [data-mode="dark"] { background: #222; }
    • JS Panel: To branch logic: if ( '{{data_mode}}' === 'advanced' ) { // run complex code }

How to Use It: A Practical Example #

Let’s create a “Smart Container” widget that has two distinct layout modes.

  1. In Widget Builder’s Content tab, add a Hidden control.
  2. Set the Name to layout_engine.
  3. Set the Default Value to flexbox.
  4. In your main CSS panel, write conditional styles:

    /* Base styles */ .my-container { display: {{layout_engine}}; }
  5. (Alternative) You could also use it in a Condition for a separate “Spacing” control: Only show the “Custom Gap” number control IF {{layout_engine}} equals flexbox.

The user will never see a setting for “layout_engine,” but your widget’s code will use the value flexbox to apply the correct CSS.

Common Use Cases #

  • Widget Versioning: Store version: "1.2" to allow your CSS/JS to adapt if you release updates.
  • Theme or Mode Flags: Set a value like theme: "dark" to automatically apply a specific set of styles without user input.
  • Behavior Triggers: Use a value like ajax_enabled: "true" to let your JavaScript know whether to use AJAX calls.
  • Template Selection: Power a conditional block in your HTML that changes the structure based on a hidden template value.
  • Integration Keys: Store a low-level identifier for integrating with other systems (use cautiously).

Helpful Tips #

  • Plan Its Use Upfront: Since users can’t edit it, think of the Hidden control as a configuration parameter you set during widget creation. Choose a clear Name and Default Value that will make sense to you later.
  • Combine with Conditions for Power: Its greatest utility is often in driving the Conditions for other controls. You can make entire sections of your widget’s settings panel appear or disappear based on a hidden value.
  • It’s Not for User Data: Remember, this is not a secure way to receive user input. It’s a tool for widget developers to manage internal state.
  • Test Thoroughly: Because it’s invisible in the editor, double-check that the shortcode {{your_hidden_name}} is working correctly in your HTML, CSS, and JS by testing the widget’s front-end output.

The Hidden control is a powerful tool for developers to build smarter, more configurable widgets with a clean user interface. It’s the behind-the-scenes conductor for your widget’s logic.

What are your Feelings

Share This Article :

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

How can we help?

Updated on December 18, 2025
CodeSwitcher
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

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 Form
  • Contact US
  • Join Community
  • Support Form
  • Contact US
  • Join Community
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
Advertisement