How to Hide a Section for Logged out Users in Divi/Elementor.

Sep 15, 2019 | Divi Tips, WordPress Tutorial | 0 comments

Samar Jamil

Hi guys.

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.

In Elementor

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.

Feeling Generous

Give me a Cup of Coffee and have a gift for giving me a Coffee

Buy me a coffeeBuy me a coffee

Written by : Samar Jamil

"

Get Freebies and new blog post notification straight in your inbox!

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

SamarJ

A site where you can find some awesome resources for the Divi theme and WordPress.

SamarJ

A site where you can find some awesome resources for the Divi theme and WordPress.

Donate

Buy me a coffeeBuy me a coffee

Copyright © 2019 SamarJ