Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul 19 posts 99 karma points
    Apr 22, 2021 @ 10:11
    Paul
    0

    Hiding registration button

    Hi

    Whilst not a direct question regarding Umbraco, I was wondering if I could somehow hide the registration button on our website during an update to the members.

    I ask here as I wonder if anyone has done this before. I am a newbie to Umbraco but not the web. Could it just be CSS or just comment it out

    I have found this in the header.cshtml

    @if (!User.Identity.IsAuthenticated)
                            {
                                if (websiteSettings.RegisterLink != null)
                                {
                                    <li><a href="@websiteSettings.RegisterLink.Url" class="cta greyBtn">REGISTER</a></li>
                                }
    
                                if (websiteSettings.LoginLink != null)
                                {
                                    <li><a href="@websiteSettings.LoginLink.Url" class="cta greyBtn">LOGIN</a></li>
                                }
    

    Any ideas?

    Thanks

  • Huw Reddick 1932 posts 6722 karma points MVP 3x c-trib
    Apr 23, 2021 @ 10:12
    Huw Reddick
    1

    We use the Maintenance Manager package to turn the site on an off when doing updates, don't know if that is what you could use. Alternatively you could maybe just add a yes/no property to your home node and use that to hide the links.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies