How do you remove the "Sign In" option from the Default Menu?
My site does not require any signing in, so I would like to remove that option from the menu bar.
As per the link from Ragavanrajan you do not need to hide it with JS, you can remove it or alternatively if you want to keep the original content you could comment it out using a liquid comment block in the "Header" Web Template
{% comment %} ....... {% endcomment %}
Hi @600toogood
Please follow the instructions from @Anonymous, I see your case is simple, please have a look at the below thread which I have provided solution.
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.
hi @600toogood ,
Its kind of strange how its not connected , but i see why you are confused. so when you hide the url from the web template it will kind of disable the partial url but will NOT hide the word "sign in" on the nav that's why you need to create this new snippet to overwrite the word "Sign in" with "." for example
Thank you for the quick reply. I had seen the same response that you posted on the other topic, but it did not work for me or I did something wrong. I was a little confused on the "Content Snippet" part. Is that part necessary for the "Sign In" option to become hidden?
I have attached a screenshot showing that I added the hide code to the "Header" template code and another screenshot showing that the "Sign In" button is not hidden on my "Default Menu."
Hi @600toogood ,
Here is something i found that will work for you:
Disable Login (personally I don't recommend):
set below site settings to false, you will need to Restart the portal via Admin Center to reflect, as some of this are loaded when the website starts in Azure/server level: https://docs.microsoft.com/en-us/powerapps/maker/portals/admin/admin-overview
Even by deactivating the above, the SignIn link will still be present on the menu, and you need to hide it via JS, which comes to my recommended approach
Disable Login (recommended):
Leave at least one login type enabled for clearing cache purposes, and hide the sign in via JS
$('a[href^="/SignIn"]').hide();
Hope this help
Thank
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional