I need help with styles (CSS).

Hello,

I do not have knowledge of styles (CSS). I would like the user and password fields (image 01.png) have the same style register page (image 02.png).

The edges of the text boxes are different, as well as the bottom of the text box.

Can you help me?

  • Patrick
    • Support Monkey

    Hi there @JADER SILVA

    I hope you're well today!

    We can certainly help you with that. But can you please provide a link to the login page on the site you're working with?

    I see in your account here that you have 23 sites registered; which one is it? :slight_smile:

  • Ash
    • WordPress Hacker

    Hello @Jader Silva

    I hope you are well today.

    Please use the following code:

    add_action( 'login_head', 'login_head_cb' );
    function login_head_cb() {
        ?>
        <style>
            #user_login, #user_pass {
            border: solid 1px #E6DB55 !important;
            background-color: #FFFFE0 !important;
            }
        </style>
        <?php
    }

    You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name 'mu-plugins'. If there is no folder in that name, then create a folder, name it 'mu-plugins', create a file inside that, give any name you like and paste the code in there. You don't need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always. If you use mu-plugins then add a php start tag at the beginning of the code.

    It will look like the screenshot.

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.