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

Community site session details

Session Id : lmPEaBtbA5YuB3sHXnJB+C
Power Pages - Power Apps Portals
Answered

Hiding Sign In Button on One Page

Like (0) ShareShare
ReportReport
Posted on 6 Aug 2021 01:59:58 by 10

Hi,

 

Just looking to see if anyone knows of a way to hide the default Sign In button on one page in a portal, we don't want to remove it altogether as it has it's use, Have looked over site settings, web link settings etc. but looks like at most you can disable certain types of login.

 

My assumption is that it will require adjustments with Custom JS, but if anyone has a best solution for this any help is appreciated. 

I have the same question (0)
  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 06 Aug 2021 at 03:33:21
    Re: Hiding Sign In Button on One Page

    Awesome @AshyPeach  glad to hear that 

  • AshyPeach Profile Picture
    10 on 06 Aug 2021 at 03:15:57
    Re: Hiding Sign In Button on One Page

    Actually i found the source code and made the necessary adjustments to remove the divider 😁

     
  • AshyPeach Profile Picture
    10 on 06 Aug 2021 at 02:54:56
    Re: Hiding Sign In Button on One Page

    @ragavanrajan Perfect, thank you so much.

     

    Is there a way to remove the little button separator as well within the HTML? (image attached) 

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 06 Aug 2021 at 02:26:54
    Re: Hiding Sign In Button on One Page

    Hi @AshyPeach ,

     

    In Portal Studio: 

     

    1. Click Home > Click Header 

    2.  Press source code editor 

    3.  You can remove the corresponding HTML tag for the Sign In button 

    4. Try finding "Sign_in" and all you need to do is remove the following piece of block 

     

     <li role="none">
     <a role="menuitem" aria-label="{{ snippets["links/login"] | default:resx["Sign_In"] | escape }}" href="{% if homeurl%}/{{ homeurl }}{% endif %}{{ website.sign_in_url_substitution }}">
     {{ snippets["links/login"] | default:resx["Sign_In"] | escape }}
     </a>
     </li>

     

    5.Press Sync configuration > Browse Website 

     

    Note: If you already logged in then you need to sign out and try ctrl + F5 or incognito to see the changes 

     

    I am not sure what is your full case but this will work definitely based on your current requirements 

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Pages

#1
Jon Unzueta Profile Picture

Jon Unzueta 174 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 37 Super User 2025 Season 2

#3
KevinGador Profile Picture

KevinGador 34 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading started
Loading complete