How can we hide the LOGIN in the HOMEPAGE

Hello,

How can we hide the Login?

Please see below:

@ossphinc
you can hide it from code.
if it is solution please mark as solution.

I found this thread, and this is exactly i’d like to do to hide LOGIN menu on nav bar.
How could i do it properly? Will it be removed when doing bench update?

Thanks a lot.

Yes, bench update will overwrite this. You can set a landing page in the website settings instead /desk#Form/Website Settings

thanks @RWEMA_Aimable for addressing this, but it seems there is no record for Login link as below.

I also need this, but only hidden when the user is logged out

You can create a new theme in Website Themes, and there you can insert CSS to hide certain parts of the frontend.

const loginButton = $('.btn-login-area');
if (loginButton.html() === 'Login') {
    loginButton.hide();
}

Add this to website script

6 Likes

Perfect!! Thank you so much

1 Like

Yay! Thanks @revant_one a lot.

https://github.com/frappe/frappe/commit/7721d540167d30f76308a2bc557afb29f021b33a

No need of script anymore. Currently available on develop branch.

Thanks

Does Anyone get it work with Safari?

Thanks.