How to Set Elementor Display Condition Based on URL String or Parameters?

Key Takeaways

  • The Plus Addons for Elementor Display Condition extension allows setting display conditions based on specific URL string or UTM parameters.
  • WooCommerce stores can show different call-to-action elements in shared templates based on the page type the visitor is viewing.
  • Visitors arriving from email campaigns can see personalized content by using UTM parameters in the URL.
  • The Display Condition feature enables content to be hidden in the frontend while remaining in the HTML for layout purposes.
Table Of Content

Are you looking for ways to personalize your Elementor page experience? Setting display conditions based on URL string or parameters can be a great way to deliver tailored content for different visitors.

The Display Condition extension of The Plus Addons for Elementor allows you to set display conditions based on specific URL string or UTM parameters.

To check the complete feature overview documentation of The Plus Addons for Elementor Display Condition extension, click here.

Best Used For:

  • WooCommerce stores that need to show different call-to-action elements in shared header or footer templates based on which page type the visitor is viewing
  • Marketing campaigns using UTM parameters to show personalized offers or banners only to visitors arriving from specific email or ad campaigns
  • Membership and SaaS landing pages that display different content blocks depending on which referral channel or campaign the visitor came from

Requirement – This extension is a part of The Plus Addons for Elementor. Make sure it is installed and activated to enjoy all its powers.

To add display conditions based on URL, add any Elementor widget to the page.

1. Go to Advanced > Display Condition.

2. Turn on the Display Condition toggle.

You will see an option called Keep HTML. Enabling this will hide the content in the frontend if the condition is false, but it will remain in the HTML (DOM). Use this when you need the element to stay in the page structure for layout reasons even when hidden.

3. From the Display When dropdown, select the appropriate option, then go to the Rules section. Here you set the actual display condition. You can add one or multiple conditions.

4. Click the Rule tab. Here you will find different options under the URL label.

How to Set Elementor Display Condition Based on URL String? 

Show or hide content based on a specific URL string. Use this to dynamically display different call-to-action elements on pages whose URL contains a specific path segment.

Note: These display conditions should be applied to the content in common templates like Header, Footer or Sidebar.

To set display conditions for a URL string:

1. Select String from the first dropdown under the Rule tab.

2. From the second dropdown, choose one of the following options:

Is – The condition is true when the URL path contains the specified string.

Not – The condition is true when the URL path does not contain the specified string.

3. In the last field, enter the URL string value.

Note: Only add the string value (shop), not the entire path.

For example, to show a CTA button in the header of all product pages on a WooCommerce site, go to the header template and select the widget.

After selecting String from the first dropdown, choose Is from the second dropdown.

In the last field, enter product as the string value.

This will show the content in the header of all product pages. To schedule this content to appear only during a specific date range, see How to Set Elementor Display Condition Based on Date & Time.

If the option is set to Not in the second dropdown, the condition reverses and the content is hidden on all product pages.

How to Set Elementor Display Condition Based on URL Parameter? 

UTM (Urchin Tracking Module) codes are text snippets added at the end of a URL to identify the traffic source for a visit. You can set display conditions based on different UTM parameters in the page URL. This is useful for showing personalized content to visitors arriving from different traffic sources, such as email campaigns, paid ads, or social media posts.

To set display conditions for a URL parameter:

1. Select Parameter from the first dropdown under the Rule tab.

2. From the second dropdown, choose one of the following options:

Is – The condition is true when the URL contains the specified parameter.

Not – The condition is true when the URL does not contain the specified parameter.

3. In the last field, enter the parameter value.

Note: Only add the parameter value (utm_source=email), not the entire path.

For example, to show a welcome message to visitors arriving from an email campaign with the UTM utm_source=email in the URL:

Select the widget, then choose Parameter from the first dropdown and Is from the second dropdown.

In the last field, enter utm_source=email.

This will show the content to all visitors who arrive via your UTM-tracked email link. To show content based on whether a visitor is logged in, see How to Set Elementor Display Condition Based on Visitor/Login Status.

If the option is set to Not in the second dropdown, the condition reverses and the content is hidden for all visitors who arrive via that UTM link.

Also, read How to Set Elementor Display Condition Based on Browser/Site Language.

About the Author

Photo of Aditya Sharma CMO of The Plus Addons for Elementor
CMO · The Plus Addons for Elementor · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordPressElementorn8nAIClaudeAutomationServer
Get Instant Answers to all your questions about The Plus Addons for Elementor, trained on 1000+ Docs and Videos

Related Frequently Asked Questions

What should I do if the display condition based on URL string isn't working?

If the display condition isn't functioning as expected, ensure that the URL string you entered matches exactly what you set in the condition. For example, if you want to display content for 'product', make sure to only input 'product' and not the full URL. Additionally, check that the Display Condition toggle is enabled in the widget settings.

What is the best practice for setting display conditions in Elementor?

A best practice is to apply display conditions to common templates like Headers, Footers, or Sidebars, as this allows for consistent messaging across your site. When setting conditions, consider using the 'Is' option for specific strings or parameters to ensure the content displays correctly for targeted audiences.

How do I set multiple display conditions for a single widget?

To set multiple display conditions, you can add one or more rules in the Rules section after enabling the Display Condition toggle. Each rule can be based on different URL strings or parameters, allowing you to create complex visibility conditions for your content.

Are there any limitations when using display conditions based on URL parameters?

One limitation is that you should only input the parameter value, not the entire URL path. For example, if your UTM parameter is 'utm_source=email', you should enter just 'utm_source=email' in the condition. This ensures that the condition evaluates correctly and displays the intended content.

Last reviewed: May 18, 2026