{"id":120347,"date":"2023-06-23T10:39:48","date_gmt":"2023-06-23T05:09:48","guid":{"rendered":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/?post_type=documents&#038;p=120347"},"modified":"2023-06-26T16:26:51","modified_gmt":"2023-06-26T10:56:51","slug":"set-elementor-display-condition-based-on-login-status","status":"publish","type":"documents","link":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/docs\/set-elementor-display-condition-based-on-login-status\/","title":{"rendered":"How to Set Elementor Display Condition Based on Visitor\/ Login Status?"},"content":{"rendered":"\n<p>If you\u2019re looking to get more out of Elementor, one of the most popular page builders available today, then setting display conditions based on visitor status can be a great way to do that. With the Display Condition extension of The Plus Addons for Elementor you can set display conditions based on whether a visitor is logged in or not, has a certain role, or is viewing the page from a specific location and more. This allows you to customise your website experience for each user.<\/p>\n\n\n\n<p><em>To check the complete feature overview documentation of The Plus Addons for Elementor Display Condition extension, <a href=\"\/docs\/display-conditions-settings-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">click here<\/a>.<\/em><\/p>\n\n\n\n<p><strong><em>Requirement&nbsp; &#8211; This extension is a part of The Plus Addons for Elementor, make sure it&#8217;s installed &amp; activated to enjoy all its powers.<\/em><\/strong><\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-75 is-style-fill\"><a class=\"wp-block-button__link has-nxt-global-color-8-color has-nxt-global-color-1-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/plus-extras\/display-rules?utm_source=tpae&amp;utm_medium=docs&amp;utm_campaign=text\" style=\"border-radius:5px\" target=\"_blank\" rel=\"noreferrer noopener\">LIVE WIDGET LINK<\/a><\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>To add visibility conditions based on the user&#8217;s different status using the Display Condition extension, add any Elementor widget on the page.&nbsp;<\/p>\n\n\n\n<p>1. Go to <strong>Advanced<\/strong> &gt; <strong>Plus Extras : Display Condition<\/strong>.&nbsp;<\/p>\n\n\n\n<p>2. Turn on the <strong>Display Condition<\/strong> toggle.<\/p>\n\n\n\n<p>Now you\u2019ll see an option called <strong>Keep HTML<\/strong>. Enabling this will hide the content in the frontend if the condition is false but it will remain in the HTML (DOM).<\/p>\n\n\n\n<p>3. After selecting the appropriate option from the <strong>Display When<\/strong> dropdown, go to the <strong>Rules<\/strong> section. Here you have to set the actual display condition. You can have one or multiple conditions\/rules.<\/p>\n\n\n\n<p>4. To set the user based display rules, click on the <strong>Rule<\/strong> tab. Here you\u2019ll find different options under the <strong>Visitor<\/strong> label.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Set Elementor Display Condition Based on User Login Status?<\/h2>\n\n\n\n<p>With this option, you can show different contents to logged in users and logged out users. This can be a very useful feature if you are running a membership site where users have to register to access certain content.<\/p>\n\n\n\n<p>To set visibility rules based on a user&#8217;s login status &#8211;&nbsp;<\/p>\n\n\n\n<p>1. Select <strong>Login Status<\/strong> from the first dropdown under the <strong>Rule<\/strong> tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"269\" height=\"974\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/06\/display-condition-login-status.gif\" alt=\"display condition login status\" class=\"wp-image-120350\"\/><\/figure>\n\n\n\n<p>2. Then in the second dropdown, you have two options &#8211;&nbsp;<\/p>\n\n\n\n<p><strong>Is<\/strong> &#8211; This will make the statement true.<\/p>\n\n\n\n<p><strong>Not<\/strong> &#8211; This will make the statement false.<\/p>\n\n\n\n<p>3. In the last dropdown, you\u2019ll have to choose <strong>Logged In<\/strong>.&nbsp;<\/p>\n\n\n\n<p>For example, if you want to show a content to logged in users only, then after selecting <strong>Login Status<\/strong> from the first dropdown, choose <strong>Is<\/strong> from the second dropdown.<\/p>\n\n\n\n<p>This will make the content visible to logged in users only.&nbsp;<\/p>\n\n\n\n<p>If you choose <strong>Not<\/strong> from the dropdown, then it will be visible to logged out users only.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Set Elementor Display Condition Based on Different User Roles?<\/h2>\n\n\n\n<p>This will allow you to show or hide content based on the user&#8217;s role. This is very useful if you allow user registration on your WordPress website, so that you can show or hide content to different users based on their roles.<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/documentation\/article\/roles-and-capabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">Understand different roles in WordPress<\/a>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>Note: This rule applies only to logged in visitors.<\/em><\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>To set display conditions based on the user role &#8211;&nbsp;<\/p>\n\n\n\n<p>1. Select <strong>User Role<\/strong> from the first dropdown under the <strong>Rule<\/strong> tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"268\" height=\"1048\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/06\/display-condition-user-role.gif\" alt=\"display condition user role\" class=\"wp-image-120351\"\/><\/figure>\n\n\n\n<p>2. Then in the second dropdown, you have two options &#8211;&nbsp;<\/p>\n\n\n\n<p><strong>Is<\/strong> &#8211; This will make the statement true.<\/p>\n\n\n\n<p><strong>Not<\/strong> &#8211; This will make the statement false.<\/p>\n\n\n\n<p>3. In the last dropdown, you\u2019ll have to choose the appropriate user role.<\/p>\n\n\n\n<p>For example, if you want to show a piece of content only to the administrator role users, then after selecting <strong>User Role<\/strong> from the first dropdown, choose <strong>Is<\/strong> from the second dropdown.<\/p>\n\n\n\n<p>Then from the last dropdown, select <strong>Administrator<\/strong>.<\/p>\n\n\n\n<p>This will make the content visible to the users with the administrator role only.<\/p>\n\n\n\n<p>If you choose <strong>Not<\/strong> from the second dropdown, then it will be hidden from administrator users.<\/p>\n\n\n\n<p>Similarly, you can set rules for other user roles.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Set Elementor Display Condition Based on Operating System?<\/h2>\n\n\n\n<p>With this option you can set the display condition of a widget based on the user&#8217;s operating system. This can be used if you offer something specific like software\/app for different operating systems, you can show content accordingly to the visitors based on their operating system.<\/p>\n\n\n\n<p>To set display conditions based on operating systems &#8211;&nbsp;<\/p>\n\n\n\n<p>1. Select <strong>Operating System<\/strong> from the first dropdown under the <strong>Rule<\/strong> tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"270\" height=\"1039\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/06\/display-condition-operating-system.gif\" alt=\"display condition operating system\" class=\"wp-image-120352\"\/><\/figure>\n\n\n\n<p>2. Then in the second dropdown, you have two options &#8211;&nbsp;<\/p>\n\n\n\n<p><strong>Is<\/strong> &#8211; This will make the statement true.<\/p>\n\n\n\n<p><strong>Not<\/strong> &#8211; This will make the statement false.<\/p>\n\n\n\n<p>3. In the last dropdown, you\u2019ll have to choose the targeted operating system.<\/p>\n\n\n\n<p>For example, if you want to show a button for the android version app to the Windows users, then after selecting <strong>Operating System<\/strong> from the first dropdown, choose <strong>Is<\/strong> from the second dropdown.<\/p>\n\n\n\n<p>Then from the last dropdown, select <strong>Windows<\/strong>.<\/p>\n\n\n\n<p>Now visitors using the Windows operating system can only see the button.<\/p>\n\n\n\n<p>If the second dropdown is set to <strong>Not,<\/strong> then the button will not be visible to the Windows operating system users.<\/p>\n\n\n\n<p>Following this process, you can also set display conditions for other operating systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Set Elementor Display Condition Based on Visitor Browser?<\/h2>\n\n\n\n<p>You can set display conditions for a content based on the visitors browser. This condition can be used if you offer something browser specific like addons or in-browser apps, then you can show content to the users based on their browser.<\/p>\n\n\n\n<p>To set display conditions based on a browser &#8211;&nbsp;<\/p>\n\n\n\n<p>1. Select <strong>Browser<\/strong> from the first dropdown under the <strong>Rule<\/strong> tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"267\" height=\"1045\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/06\/display-condition-browser.gif\" alt=\"display condition browser\" class=\"wp-image-120353\"\/><\/figure>\n\n\n\n<p>2. Then in the second dropdown you have two options &#8211;&nbsp;<\/p>\n\n\n\n<p><strong>Is<\/strong> &#8211; This will make the statement true.<\/p>\n\n\n\n<p><strong>Not<\/strong> &#8211; This will make the statement false.<\/p>\n\n\n\n<p>3. In the last dropdown, you\u2019ll have to choose the targeted browser.<\/p>\n\n\n\n<p>For example, we have an addon for both Mozilla Firefox and Chrome browser. Now we want to show different buttons on both browsers for their respective download options.&nbsp;<\/p>\n\n\n\n<p>For this, select a button; after selecting <strong>Browser<\/strong> from the first dropdown, choose <strong>Is<\/strong> from the second dropdown.<\/p>\n\n\n\n<p>Then from the last dropdown, select <strong>Chrome<\/strong>.<\/p>\n\n\n\n<p>Now that button will be visible to Chrome users only.<\/p>\n\n\n\n<p>Following this process, you can also set conditions for the Mozilla Firefox browser.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Set Elementor Display Condition Based on Geo Location of Visitor?<\/h2>\n\n\n\n<p>You can show different content based on the location of a user. This can be a great way to show customised content or offer based on the visitor&#8217;s location.<\/p>\n\n\n\n<p>To set display conditions based on the visitor&#8217;s location &#8211;&nbsp;<\/p>\n\n\n\n<p>1. Select <strong>Location<\/strong> from the first dropdown under the <strong>Rule<\/strong> tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"269\" height=\"974\" src=\"https:\/\/etemplates.wdesignkit.com\/wp-content\/uploads\/sites\/55\/2023\/06\/display-condition-login-status-1.gif\" alt=\"display condition login status\" class=\"wp-image-120354\"\/><\/figure>\n\n\n\n<p>2. Then in the second dropdown, you have two options &#8211;&nbsp;<\/p>\n\n\n\n<p><strong>Is<\/strong> &#8211; This will make the statement true.<\/p>\n\n\n\n<p><strong>Not<\/strong> &#8211; This will make the statement false.<\/p>\n\n\n\n<p>3. In the last dropdown, you\u2019ll have to choose the targeted country.<\/p>\n\n\n\n<p>For example, we want to show a customised message for all the visitors coming from United States. To do this, after selecting <strong>Location<\/strong> from the first dropdown, choose <strong>Is<\/strong> from the second dropdown.<\/p>\n\n\n\n<p>Then from the last dropdown, select <strong>United States<\/strong>.<\/p>\n\n\n\n<p>This will make that content visible to the visitors coming from United States only.<\/p>\n\n\n\n<p>If you choose <strong>Not<\/strong> from the second dropdown, then the content won\u2019t be visible to visitors from United States.<\/p>\n\n\n\n<p>Following this process, you can set display conditions for other countries as well.<\/p>\n\n\n\n<p>Also, read <a href=\"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/docs\/set-elementor-display-condition-based-on-date-time\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Set Elementor Display Condition Based on Date &amp; Time<\/a>.<\/p>\n","protected":false},"author":25,"featured_media":120458,"parent":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","docs":[565,525],"class_list":["post-120347","documents","type-documents","status-publish","format-standard","has-post-thumbnail","hentry","docs-display-conditions","docs-plus-extras"],"acf":[],"_links":{"self":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/documents\/120347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/documents"}],"about":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/types\/documents"}],"author":[{"embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/comments?post=120347"}],"version-history":[{"count":0,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/documents\/120347\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/media\/120458"}],"wp:attachment":[{"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/media?parent=120347"}],"wp:term":[{"taxonomy":"docs","embeddable":true,"href":"https:\/\/etemplates.wdesignkit.com\/theplusaddons\/wp-json\/wp\/v2\/docs?post=120347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}