cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
600toogood
Regular Visitor

Remove "Sign In" from Default Menu

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ragavanrajan
Super User
Super User

Hi @600toogood 

 

Please follow the instructions from @Manar, 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/121916...

 

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.

View solution in original post

5 REPLIES 5
Manar
Super User
Super User

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

 

Hope this help

 

Thank

 

Thank you,
Manar

If you like this post, give it aThumbs Up. Where it solved your query, mark it as a SOLUTION so it can help other people!

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

Manar
Super User
Super User

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,
Manar

If you like this post, give it aThumbs Up. Where it solved your query, mark it as a SOLUTION so it can help other people!
ragavanrajan
Super User
Super User

Hi @600toogood 

 

Please follow the instructions from @Manar, 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/121916...

 

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
Solution Sage
Solution Sage

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

 

Helpful resources

Announcements
Carousel News & Announcements 768460.png

What's New in the Community?

Check out the latest News & Events in the community!

Carousel Community Blog 768x460.png

Check out the Community Blog

Read all about the most recent blogs in the community!

MPP IDEAS updated 768x460.png

Ideas

Discover ideas and concepts from users like you for how to use Power Pages and take your work to the next level.

Need Assistance in the Community.PNG

Community Support

Learn more about how to interact in the community and more.

Users online (2,222)