DEAL ENDS IN:

WINTER SALE!

UP TO 35% OFF!

GET IT NOW

Getting Started

What are Dynamic Triggers?

No coding skills are required to create personalized content with If-So.

If-So gives you the ability to create different versions of content on your website. 

You can create one or even multiple versions of content, with each version consisting of a condition with corresponding content. If the condition is met, then that version’s content will be displayed. If the condition is not met, If-So will check the condition of the next content version and display that content.

A basic unit of dynamic versions and a default version is called a “Trigger”. Each trigger has a shortcode that you can paste anywhere on your website. Every time a page with a shortcode is rendered, If-So checks the conditions and displays content accordingly.

The chart below illustrates a basic trigger with one dynamic version:

An illustration showing that dynamic trigger is comprised of dynamic version and a default version. If the condition of the dynamic version is met the version will be displayed. If not, the default version will be displayed.

Applying the trigger on your site

Option #1: Applying a trigger using a shortcode

The first and most common to apply the trigger on your site is by pasting the trigger’s shortcode on any field on your site that accepts shortcodes.

If you are using a page builder, you can paste the shortcodes inside a text, title, shortcode, or HTML widgets/blocks.

You can also use the shortcode in the page title field or on menus in case you want to create dynamic menu items.

Option #2: Applying a trigger using a PHP code

Another option to apply a trigger is to do so directly in the page template using a PHP code. This option is useful if you would like to include a trigger on several or on all of your website pages, or if you would like to use dynamic content on places that don’t accept shortcodes. Learn more about embedding a trigger using PHP code.

A trigger with multiple dynamic versions

There is no limit to the number of dynamic versions you can create within each trigger.

If you choose to create a trigger with more than one version, the condition of the first version (Version A) will be checked first. If the condition is met, Version A will be displayed. If the condition is not met, the condition of Version B will be checked, and so on. If none of the conditions are met, the default version will be displayed. You can drag and drop the versions to change the order they are checked.

The following chart illustrates a trigger with 2 dynamic versions. You can set as many versions as you like:

Creating a trigger with multiple versions. If the condition of version A is not met, the condition of version B will be checked and so on

Reorganizing dynamic content versions

While creating or editing a trigger, you may want to reorder the different versions. To do so, use the drag button which is located on the top right corner of the version. Click and hold the button while dragging it vertically to place it in the desired location.

Please note, as you see in the animation below, once you change the order of your version will be renamed to reflect the new order in which it’s listed (eg, Version B below becomes Version A).

  • Was this Helpful ?
  • YesNo
Ready to get started?
Try it on your website