Remove navbar from login page

Discussion in 'LiquidFiles General' started by Roman S., Nov 19, 2018.

  1. Roman S.

    Roman S. New Member

    Joined:
    Nov 18, 2017
    Messages:
    14
    Likes Received:
    1
    ist this possible to remove navbar (logo) only from login page?

    I mean this whole part:

    <div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
    <a href="https://[MY URL]/"><span class="navbar-brand"><img src="/img/[MY]_logo.png" style="height: 22px; width: 150px;"></span></a>
    <ul class="nav pull-right">
    </ul>
    </div>
    </div>

    Anybody knopws how is to do it?
     
  2. David

    David Administrator
    Staff Member

    Joined:
    Dec 1, 2015
    Messages:
    781
    Likes Received:
    31
    This can be achieved by adding Custom Javascript (or Custom CSS) code in to the "Admin > Configuration > Branding" settings.
    Please check more details about Custom Javascript overrides here: https://man.liquidfiles.com/branding/stylesheet_and_javascript_overrides.html
    https://man.liquidfiles.com/branding/examples.html

    In this particular case, removing the navbar logo only from the login page with Javascript can look like this.

    Code:
    $(function() {
      $('#page_home_show  header .navbar-brand').remove();
    });
    
    Note: The code should be pasted to the "Custom Javascript" box in the "Admin > Configuration > Branding" settings.
     

Share This Page