How to hide a module after login in Joomla 3.1
In our Joomla 3.0 testing site, we have the following custom HTML module showing in our right sidebar:
We don't want our registered and logged in users to see this message, as they're already registered. How do we hide this module after login? Keep reading to find out.
How to hide a module when a user is logged in
- Log into your Joomla 3.0 dashboard
- In the top menu, click Extensions and then click Module Manager
- In the list of modules on the page, click the module that you don't want to show for logged in users
- In the list of settings on the page, find the Access setting:
The access level group that is allowed to view this item.
The default setting is Public, which is everyone that visits your site. This includes both guests and logged in users. To hide this module for users logged in, change the setting value to Guest, which means only guests will have permission to view it. Click Save in the top left of the page to save your settings.
In the screenshots below, both are taken as a logged in user. One screenshot represents when the Public Access is set, and the other shows the Guest Access set.
Access: Public Access: Guest
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!
Using Extensions in Joomla 3
2014-07-10 6:40 am
You are saying to choose 'guest' but I don't have such option. Do I need to create this?
2014-07-10 10:37 am
The Guest group should be a default unless you've removed it. You should be able to navigate to Users > User Manager in the Joomla admin, and then click on User Groups on the right hand side too see all the available ones.
I'm seeing this in a default Joomla 3 installm:
If you don't see this, you should be able to click on + New still in the User Manager > User Groups section. Select Public as the parent of this group and name it something like
Then click on Viewing Access Levels from the left-hand side. Click on the Guest level, and then under the User Groups Having Viewing Access place a check-mark beside the Guest user group you created.
Please let us know if that helps!
2014-08-22 5:00 pm
Hi, i choose Guest from the acces level in the menu, but when a refresh the page, the menu dessapear even if i'm not loggued in :S
why could this happen?
2014-08-22 5:48 pm
Thanks for the question. Without knowing how your Joomla is setup, the cause to your module showing not appearing after you have assigned it to a specific group could be few different possibilities. I would double-check to make sure that you are not logged in through a cached page (clear the browser cache. Also, double-check your "guest" user and make sure it is assigned properly in the Users Module. Lastly, look at the module you where you modified the access - make sure it is set correctly, saved and published. If it continues to be a problem, we would need further information about your site. A URL would help, as well as the exact steps you're taking when assigning the user values to the module.