web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Remove "Sign In" from ...
Power Pages
Unanswered

Remove "Sign In" from Default Menu

(1) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    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

     

  • 600toogood Profile Picture
    30 on at

    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 at

    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 

  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    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.

  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

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

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard