Reputation: 169
How to remove sign in functionality, which will display on right top corner of the Liferay portal guest page?
I tried to delete the #sign-in from custom.css file of classic theme which is the default theme for Liferay, but it did not work.
Upvotes: 1
Views: 3488
Reputation: 11
I think the normal way would be to delete/comment out the velocity script code in theme's portal_normal.vm file.
<!--
#if(!$is_signed_in)
<li>
<a href="$sign_in_url" id="header-sign-in" rel="nofollow">$sign_in_text</a>
</li>
#end
-->
Then you can be sure, that there is no login code in your generated jsp files.
Upvotes: 1
Reputation: 169
The solution provided by you did not worked for me. But I did changes to your code it started working.
the Change I did is as follows:
.sign-in{
display:none;
}
Instead of '#' I used '.', then its worked for me.
Thank you for the Solution.
Upvotes: 0
Reputation: 4210
Instead of changing css in custom.css file of classic theme because it will not load changes of css, provide below css in Control Panel >> Site Pages >> Look and Feel >> CSS field.
#sign-in{
display:none;
}
Upvotes: 1