Dynamic Conditions

Description

Dynamic Conditions is an Elementor addon that adds conditional logic to show or hide different elements. The plugin adds conditions to dynamic tags to show/hide a widget or section.

The plugin requires Elementor Pro since it uses Dynamic Tags to set the comparison conditions.

Setting display conditions is easy! Just enter the condition value and compare it to any dynamic tag. If the condition is met, set whether you want to show or hide the element. Can it be more simple?

Advanced users can set complex conditions – you can check if a field is empty, if it contains some value, if it equals a value, greater/smaller or between a certain value.

Special thanks to WPTuts for making a nice video tutorial:

You can support development by contributing to the plugin´s GitHub repository:

Github Dynamic Conditions

Usage

  1. Select a widget or a section.
  2. Go to the Advanced tab.
  3. Click the Dynamic Conditions area.
  4. Set the “ Dynamic Tag” field you want to compare to.
  5. Set whether you want to “ Show/Hide” the element if the condition is met.
  6. Under the “ Condition” field, select what you wish to compare. You can compare whether the field is empty/not-empty, check if it has a specific value or if its value is between two other values.
  7. The “ Compare Type” field defines what type of fields do you want to compare. Default compares two strings (text). But if you want to show a widget/section only on Monday or only in December, you can select Days or Month as Compare-Type.
  8. At last you have to enter the value to compare the dynamic-field with. Or two values, if you have selected the “ between” condition.

Screenshots

  • Widget options for conditions

FAQ

Can I use custom-fields, ACF fields, Pods?

Yes, all the above are supported and many others supported out-of-the-box by Elementor Pro.

Can I set date based conditions?

Yes, the plugin supports date based conditions, for example current-date or post-date. You can compare dates, days and months.

Can I show/hide elements for logged-in or logged-out users?

Yes, you can set display conditions for logged in or logged out users. Selecting the “ user information” dynamic-tag, and set it to “ user ID” . Now check if it is empty or not.

Are my elements only hidden or fully removed?

The elements will be fully removed from source code, like they are not existing.
Only if you use the experts options to hide also wrappers or other elements, they will only be hidden with css.

I´m missing some dynamic tags

We have developed an other plugin which provides some useful tags.
You can find it here:
DynamicTags

Reviews

ဩဂုတ် 10၊ 2024
When I ran into an issue, support was there to solve it quickly for me. Having been on in situations where that isn’t the case with other plugins, I can’t tell you how important that is!
ဇူလိုင် 22၊ 2024 3 replies
Who thought that forcing people to upgrade to php 8 to be able to use the latest version of the plugin was a good idea? Most of the plugins don’t need PHP 8, and a lot of them will have errors with PHP 8 You are forcing people to choose between almost all their plugins OR your plugin.You will notice a huge decrease in people installing this plugin (if it hasn’t happened already!) please fix this!
ဇွန် 10၊ 2024 1 reply
This was a great addition to Elementor Pro. Elementor should include these features within the Pro plugin. However, the plugin has stopped working and won’t let me install, as it says it requires a newer version of PHP to run. We have the latest version running, and rolling back the plugin version wouldn’t work. Now all my dynamic viewing conditions are broken causing a huge mess.
ဖေ‌ဖော်ဝါရီ 19၊ 2024
Totally brilliant plugin. Enables amazing control for more complex use cases, which paired with Elementor allowed you to build much more interesting and visually designed apps.
Read all 112 reviews

Contributors & Developers

“Dynamic Conditions” is open source software. The following people have contributed to this plugin.

Contributors

“Dynamic Conditions” has been translated into 5 locales. Thank you to the translators for their contributions.

Translate “Dynamic Conditions” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.7.4

  • Fix big issue with loops destroying everything

1.7.3

  • Fix issue with date-conditions

1.7.2

  • Fix issue with broken layout caused by weakmap and ob_cache

1.7.1

  • Hotfix issue when element is no Base_Element

1.7.0

  • Fix issue with removed css
  • Add int as option for compare-type
  • Add dashed border for elements with condition in editor
  • Add support for php 7.4 again

1.6.3

  • Fix issue with optimized_control_loading
  • Fix php warnings

1.6.2

  • Fix missing css if elements are hidden
  • Hotfix weird php-error on array-to-string-conversion

1.6.1

  • Fix deprecated warnings

1.6.0

  • Add support for containers

1.5.1

  • Fix issue with shortcodes

1.5.0

  • Add option to hide wrappers and other elements by selector (javascript only)
  • Add new compare type “ in_array_contains”
  • Fix error when elementor is disabled
  • Styling dynamic-tag field
  • Prevent shortcode-execution on hidden elements
  • Make condition value dynamic

1.4.5

  • Fix some issues with date-parsing
  • Add option to disable date-parsing

1.4.4

  • Fix issues with parsing of dates from shortcodes
  • Fix issue with Elementor 2.9

1.4.3

  • Fix issue with popups in editor
  • Fix double slash on javascript-enqueue

1.4.2

  • Fix issue with popups in preview

1.4.1

  • Fix issue with calculation of hidden columns

1.4.0

  • Add array conditions
  • Add conditions for popups
  • Change code-structure
  • Fix issues with day-/month-translation

1.3.0

  • Improve parsing of acf dates
  • Add icon to elements with condition in preview
  • Add option to parse shortcodes
  • Fix some issues

1.2.1

  • Fix issue with date timestamp in custom skins
  • Improve performance

1.2.0

  • Add condition between
  • Add date, day and month compare options
  • Add NumberPostsTag
  • Add short documentation
  • Add debug-mode

1.1.2

  • Fix issue with section

1.1

  • Add condition greater and less than

1.0.1

  • Fix sections
  • Some refactoring

1.0

  • Release