UP TO 35% OFF!


Page URL

In this article: What is the page URL condition | How to set up the Page URL condition 

What is the page URL condition?

The Page URL condition allows you to add or replace content on your website based on the page’s static URL or the URL Parameters.

Dynamic content can be displayed based on the exact URL or part of the URL.

For example, the condition If > Page URL > Contains > /category1 will be met both if the URL is and if the URL is

How to set up the Page URL condition:

*Elementor or Gutenberg user? This condition can be used to set up a conditional element or block (Learn more: Gutenberg | Elementor).

  1. On your WordPress dashboard, go to “If-So → Add New Trigger
  2. Click on “Select a condition” and select “Page URL”.
  3. Select “URL”.
  4. Select an operator: “URL is” / “URL contains” / “URL is not” / “URL does not contain”.
  5. Type in a domain, a webpage URL, or a term.
  6. In the content field, set the content to be displayed if the condition is met.
  7. In the default content field, set content to be displayed if the condition is not met (optional, can be left blank).
  8. Press “Publish” and paste the shortcode generated by If-So in your website



  • Does If-So work with server-side and WordPress caching solutions?


    Whether you are using a caching plugin or server caching, you can navigate to the plugin settings and enable the “Page Caching Compatibility” option. With the option enabled, dynamic triggers will be rendered in a separate request that will take place after the loading of the cached version.

    Learn more about Page Caching Compatibility.

  • Is it possible to set up conditional redirects ( redirecting users to different pages based on conditions)?

    Yes, you can set up conditional redirects based on any If-So condition. For a step-by-step guide, click here.

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