Advertisement
miriamdepaula

WordPress - Custom Login Style - by Drika (WordPress Brasil)

Jul 29th, 2011
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1. //CSS -> crie um arquivo login.css e coloque na pasta do seu tema.
  2.  
  3. /* Custom Login Styles */
  4. html {background:#D72007!important}
  5. body {background:#D72007 url(images/bg-body.png); height:100%;}
  6. #login { margin:0 auto 10.5em!important }
  7.  
  8. #login h1 a {   /* Title image (The "WordPress Logo"). Remember to update the height and width your image's dimensions */
  9.     background:url(images/logomarca.png) 0 0 no-repeat;
  10.     width:216px;
  11.     height:234px;
  12.     margin:0 auto;
  13.     text-align:center;
  14. }
  15.  
  16. .button-primary { background:#D72007!important; border-color:#F60!important; }
  17. body form .input { color:#d72007!important}
  18.  
  19.  
  20. //PHP -> Coloque no arquivo functions.php
  21.  
  22. //custom login
  23.     add_action( 'login_head', 'custom_login' );
  24.     function custom_login() { ?>
  25.         <link media="all" type="text/css" href="<?php bloginfo( 'template_directory' ); ?>/login.css" rel="stylesheet">
  26.     <?php }
  27.    
  28.     add_filter('login_headerurl', 'custom_wp_login_url');
  29.     function custom_wp_login_url() {
  30.         return bloginfo('url');
  31.     }
  32.    
  33.     add_filter('login_headertitle', 'custom_wp_login_title');
  34.     function custom_wp_login_title() {
  35.         return get_option('blogname');
  36.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement