Skip to main content

Notifications

Community site session details
Power Pages - Power Apps Portals
Answered

Remove "Sign In" from Default Menu

Like (1) ShareShare
ReportReport
Posted on 29 Nov 2021 14:45:36 by 30

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.

  • Fubar Profile Picture
    7,850 Super User 2025 Season 1 on 30 Nov 2021 at 04:58:10
    Re: Remove "Sign In" from Default Menu

    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 %}

     

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 29 Nov 2021 at 20:07:34
    Re: Remove "Sign In" from Default Menu

    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. 

     

    https://powerusers.microsoft.com/t5/Power-Apps-Portals/Hiding-Sign-In-Button-on-One-Page/td-p/1219163

     

    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.

  • Community Power Platform Member Profile Picture
    on 29 Nov 2021 at 19:53:55
    Re: Remove "Sign In" from Default Menu

    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 

  • 600toogood Profile Picture
    30 on 29 Nov 2021 at 19:46:29
    Re: Remove "Sign In" from Default Menu

    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."

  • Community Power Platform Member Profile Picture
    on 29 Nov 2021 at 16:27:31
    Re: Remove "Sign In" from 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

    • Authentication/Registration/Enabled
    • Authentication/Registration/AzureADLoginEnabled
    • Authentication/Registration/ExternalLoginEnabled
    • Authentication/Registration/InvitationEnabled
    • Authentication/Registration/LocalLoginEnabled

    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

    • Open the Web Template Header, and at the bottom there is some JavaScript code, within the window.onload function add the following code:
    $('a[href^="/SignIn"]').hide();

    Manar_0-1638203194947.png

     

    • The above will hide the SignIn link, but you might notice that there is a small delay, and the user will still know that the SignIn exists, so I recommend changing the SignIn text to a simple "-" or "."
    • Create a Content Snippet called "links/login" with the text

    Manar_1-1638203194640.png

     

     

     

    Ref https://powerusers.microsoft.com/t5/Power-Apps-Portals/Newbie-Question-2-How-do-I-remove-sign-in-from-my-menu/td-p/555781 

     

    Hope this help

     

    Thank

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard