How to Hide a Section for Logged out Users in Divi/Elementor.
In this tutorial, I am going to show you how you can hide a Specific section for Logged out users in Divi and Elementor or any other Page Builders out there. There are many reasons why you wanted to do this so this is a solution for you.
It’s so easy no need of any plugin we just need to add a class to that section(that will not available for logged out user) and a few lines of CSS.
First of all, we need to add a class to that section which will be: hide-for-logged-out.
Then add a Code Module.
And paste this CSS in the that Box(You can add this code anywhere you paste your CSS codes just make sure to remove the style tags when you paste it in Theme Options and other places).
Now, logout from your site and see that Section will not appear as you’re logged out.
The same thing goes for the Elementor as well just add class to that section:hide-for-logged-out
Now add a new module as HTML and paste that code in this box.
Now try to logout from your site and see that Section will not appear as you’re Logged out.
So that’s it for this tutorial Hope you’ve liked it and if you found any problem just put a comment in the section below and I’ll try to help you as soon as possible.
Give me a Cup of Coffee and have a gift for giving me a Coffee
Written by : Samar Jamil
Get Freebies and new blog post notification straight in your inbox!