Skip to content

Instantly share code, notes, and snippets.

@rickslayer
Last active December 16, 2020 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickslayer/aba882136b8ca40a75c9e12c9e1d721a to your computer and use it in GitHub Desktop.
Save rickslayer/aba882136b8ca40a75c9e12c9e1d721a to your computer and use it in GitHub Desktop.
Como mudar a tela de login do Wordpress
<?php
//Arquivo functions.php
function muda_cor_botao(){?>
<style type="text/css">
/*PARA MUDAR O FUNDO DA PÁGINA*/
body{
background:#black !important;
}
/*PARA MUDAR O LOGO E O TAMANHO DO LOGO*/
#login h1 a, .login h1 a {
background-image: url("/wp-content/uploads/2020/10/logo-bmb.png");
height: 200px;
width: 265px;
background-color: white;
background-size: 185px 199px;
background-repeat: no-repeat;
}
/*PARA MUDAR A COR E TAMANHO DO BOTÃO*/
.login #wp-submit {
background-color: #yellow !important;
border-color: white !important;
box-shadow: inset 0 2px 0 white !important;
vertical-align: top;
width: 100%;
padding: 12px;
margin-top: 16px;
}
</style>
<?php }
add_action('login_enqueue_scripts', "muda_cor_botao");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment