Have you ever thought of hiding Sign In Portlet? Once I got a requirement to do this for my project. Here is a quick tips.

Sign In Portlet
Log in Liferay as Admin and go to look and feel as below

Go to look and feel
In the advance styling add below code and save the changes.
.signed-in .portlet-login {
display: none;
}

Advance Styling
Refresh your browser. Sign In Portlet will be invisible.
Careful:
Suppose you want to revert back. How will you do that? Because its invisible. By firebug just inspect the page as below

Inspect
The same thing can be in VM file of the theme also. But this is the most light wight option to achieve this.
Have you ever thought of hiding Sign In Portlet? Once I got a requirement to do this for my project. Here is a quick tips.
![]() |
Sign In Portlet |
Log in Liferay as Admin and go to look and feel as below
![]() |
Go to look and feel |
In the advance styling add below code and save the changes.
.signed-in .portlet-login {
display: none;
}
![]() |
Advance Styling |
Refresh your browser. Sign In Portlet will be invisible.
Careful:
Suppose you want to revert back. How will you do that? Because its invisible. By firebug just inspect the page as below
![]() |
Inspect |
The same thing can be in VM file of the theme also. But this is the most light wight option to achieve this.
No comments:
Post a Comment