Dynamic Conditions

תיאור

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:

https://github.com/RTO-Websites/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.

צילומי מסך

  • Widget options for conditions

שאלות נפוצות

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.

סקירות

26 בנובמבר 2020
A great Elementor concept (which should probably be native to Elementor Pro). I saw reviews on Github that this plugin slows down a site significantly, but when I installed it my admin dashboard stopped loading (504 error). Make sure you have a backup before installing this 👍
23 בנובמבר 2020
Instead of buying the expensive Dynamic Content with Conditional Logic plugin, this handy one does the job excellently and in a very flexible way! Thanks, guys!
7 באוקטובר 2020
Building a page template to be truly useful meant finding a way for me to hide some content not applicable to specific posts. This plugin was a god send! Thx!
קראו את כל 63 הסקירות

מפתחים

"Dynamic Conditions" הוא תוסף קוד פתוח. האנשים הבאים תרמו ליצירת התוסף הזה.

תורמים

“Dynamic Conditions” תורגם ל-4 שפות. תודה רבה למתרגמים על תרומתם.

ניתן לתרגם את "Dynamic Conditions" לשפה שלך.

מעוניינים בפיתוח?

עיינו בקוד, ראו את הקוד ב-SVN repository, או הירשמו ללוג פיתוח באמצעות RSS.

שינויים

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
  • שיפור ביצועים

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

  • תיקון אזורים
  • Some refactoring

1.0

  • שיחרור