Override wp-login.php styles

后端 未结 3 1260
野趣味
野趣味 2021-01-22 23:50

I have a Wordpress CMS website where most labels are needed to be white. So the theme includes the below styles per form labels.

.login label {
    color: #fff;
         


        
3条回答
  •  忘掉有多难
    2021-01-23 00:31

    It's not best practice to edit any wp core files, so I'd advice not to touch wp-login.php anyway, since updating WordPress can reset things.

    Instead, add this to your functions.php:

     // Custom login
    function custom_login() {
            $files = '';
            echo $files;
    }
    add_action('login_head', 'custom_login');
    

提交回复
热议问题