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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,908)