# Removing extra buttons from "Login required" screen

**URL:** <https://meta.discourse.org/t/removing-extra-buttons-from-login-required-screen/34167>\
**Category:** UX\
**Created:** [Octobre 5, 2015, 11:25 UTC](https://meta.discourse.org/t/removing-extra-buttons-from-login-required-screen/34167 "2015-10-05T23:25:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [Octobre 6, 2015, 1:16 UTC](https://meta.discourse.org/t/removing-extra-buttons-from-login-required-screen/34167/3 "2015-10-06T01:16:00Z")

</div>

Adding this to the admin/customize/head section will hide the header login and dropdown menu buttons on the login page. There might be a better way to do this.

This kind of thing would be easier if Discourse added some more descriptive css classes to the body,

```js
<script>
    Discourse.ApplicationController.reopen({
        // Gets the current pathname
        currentPathDidChange: function() {
            Discourse.currentPath = window.location.pathname;
        }.observes('currentPath')
    });
    
    Discourse.ApplicationView.reopen({
        didInsertElement: function() {
            this._super();
            if (Discourse.currentPath === '/login') {
                $('.d-header .panel').css('display', 'none');
            }
        }
    });
</script>

```

 ![](https://global.discourse-cdn.com/meta/original/3X/9/b/9bcc4817d1877ccbafaeb65e7b399a86ea2f37fc.png)

---

_[View the full topic](https://meta.discourse.org/t/removing-extra-buttons-from-login-required-screen/34167)._
