The body element already gets a logged-in
class that you can use to hide the element with regular CSS.
body:not(.logged-in) #elementor-element-f4e5a8e {
display: none;
}
If the ID is dynamic and isn’t always the same you’ll need a different selector to target the element, but that would still just require standard CSS techniques that have nothing to do with WordPress.
Also, be aware that hiding something with CSS is trivially easy for users to bypass, so whatever information is in this div should be treated as public.
Related Posts:
- How reduce wordpress login session timeout time?
- How long do users stay logged in if they DON’T check remember me?
- how to logout user on browser tab or window closes
- Custom Connect to Facebook, problem logging in/logging out
- Preexisting login to change to logout link in sub menu
- Session Experies and Get Logged Out Within Few Minutes
- WordPress error on log out ‘Not Permitted’ and can’t log out
- Add logout link when logged in, make it disappear when logged out?
- Lock out all WordPress Administrators except two specific users
- How to remove ‘wordpress…’ text from page titles in tabs
- Problem with is_user_logged_in() function in some pages
- Why deleting/removing cookies in WordPress does not log me out from admin?
- wp_logout logging everyone out instead of just the user that clicked the logout link!
- Inconsistent login state
- Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
- SSO / authentication integration with external ‘directory service’
- Preventing session timeout
- Check for correct username on custom login form
- ‘Password field is empty’ error when using autofill in Chrome
- Prevent wp_login_form() from redirecting to wp-admin when there are errors
- How to disable autocomplete on the wp-login.php page
- how to display the wordpress login and register forms on a page?
- How to remove the WordPress logo from login and register page?
- How can I add a custom script to footer of login page?
- Is it alright for two people to simultaneously be logged into a WP site as administrator?
- How do I turn off the ability to login?
- Give visitor access to password protected page/post via external script
- WordPress Login Footer URL
- moving server can not login
- Save last login date in global before change it?
- How to get login data (session) outside WordPress?
- password protect individual pages
- Change register form action url
- Is back-end access not required for an app to post to my blog?
- Store brute-force IP addresses
- How do I make my site publicly viewable? Everything redirects to wp-admin
- How to create a private login page for admin.?
- WordPress Security – How to block alternative WordPress access
- Protecting WordPress login page
- Different homepage for logged in users
- How can I prevent my custom form from redirecting to wp-login?
- reset password link redirect to login page
- Deregister default wp-admin css on login screen only?
- Forgot password needs to redirect from wp-login to a custom page
- SSO to WP, from a non-wp site on a different domain and server
- How can I login as admin after redirect to custom login page
- Login with serialized password
- is_user_logged_in() not working in Firefox
- Why would the login page reload indefinitely?
- Set Default User Role
- Creating custom login errors
- Removing wordpress cookie from non-wordpress site
- Why is wp-login trying to send an email?
- Replacing default display name to login name
- Why does is_user_logged_in() return false after I change user password on the front end?
- How to generate “WP_Error” Object for user login?
- ?login=failed only attached to URL under certain circumstances
- WordPress not logged in locally with correct username and password
- my wp-login page doesn’t load [closed]
- Requiring login for specific pages
- login trouble WordPress can change IDs created by hoster site
- How to unpublish my new site while working on it?
- login/logout for only one page
- WordPress registration page template
- Removing “public” user registration without completely turning it off?
- Custom login modal page action
- Require re-login when logged-in user attempts to access restricted page
- Disable registration on certain condition
- Temporally disable password to login with empty password?
- User not able to sign in after wp_authenticate() and wp_signon() wordpress
- Login error when username as email different to primary email
- Unable to login my wordpress website
- How do you implement a login feature on a WordPress site?
- Help! ERROR: Cookies are blocked due to unexpected output on attempting to login to resolve an issue with my site
- How to make Logout Link consistently appear on all web pages?
- wp-cron event doesn’t run when custom login API is enabled
- How to log into WordPress admin in MAMP
- Can’t login with any account – No error message shown
- wp login password reset
- Building a custom login form – encountering issues
- Cookies error during first time login attempt
- Hide login page and use wp_login_form on ordinary pages
- Login screen keeps resetting?
- Chosen user password in registration is not being accepted on Login
- How can I customize the content of the login page?
- WordPress giving error when I log in after trying emergency.php
- Some crawlers/bots attempting to login with very good guesses. How?
- Create custom field for users to check if they agreed to terms
- WordPress logs out on protocol switch
- Logging back into WordPress after logging out and having issues with ‘loggedout=true’ in redirect URL
- Showing A Menu When Only Users Are Logged In [duplicate]
- Why doesn’t the “Remember Me” checkbox work for me on a live website? Only works on a local server environment
- Secure login without SSL? [closed]
- Cant login, Password MUST be reset error, after reset
- Trying to create a log in system but getting error “Parse error: syntax error, unexpected ‘else’ (T_ELSE) ” [closed]
- authenticate to another site using a login form on my site
- Browser Caching for Logged in Users
- How can I automatically change directory on ssh login?
- How to create a fully functional user registration in WordPress?
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?