# Como posso alterar o estilo da página de Login Required?

**URL:** <https://meta.discourse.org/t/how-can-i-change-the-login-required-page-style/40009>\
**Category:** Development\
**Created:** [Fevereiro 22, 2016, 9:49pm UTC](https://meta.discourse.org/t/how-can-i-change-the-login-required-page-style/40009 "2016-02-22T21:49:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [Fevereiro 22, 2016, 10:58pm UTC](https://meta.discourse.org/t/how-can-i-change-the-login-required-page-style/40009/7 "2016-02-22T22:58:39Z")

</div>

There is an `.anon` class that is added to the html element when there is a non-logged in user. I think that for sites that require login to read content, a non-logged in user can only access the login, FAQ, Terms of Service, and Privacy pages. They are most likely to only access the login page.

You can add a background image to it with something like this:

```css
.anon { 
  background: url(http://wallpapercanyon.com/wp-content/uploads/2016/01/Background-Images-10.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

```

You can add html to the login\_required.welcome\_message. Any css classes that you add to that html will be stripped by the Discourse markdown parser. If you need to you can whitelist css classes with a plugin. I think a customized login page is a great idea 🙂

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-change-the-login-required-page-style/40009)._
