What is the best way to create rounded corners on a WordPress login page?

I recently implemented the Custom Login Page Customizer plugin on my WordPress website and it has created a beautiful login page. While I was able to round the corners of my logo using CSS, I'm struggling to achieve the same effect on the login form. Every other element on the site has rounded corners except for the form. I've tried adding border-radius properties to the CSS but for some reason, they are not being applied. Despite reaching out to the plugin's support forum weeks ago, I still haven't received a solution. If anyone here can assist me with this issue, I would greatly appreciate it. Thank you.

CSS

/*--------------------------------------------------------------
7.1 Login form
--------------------------------------------------------------*/

.login #login form#loginform {
    border: 5px double #999 !important;
    border-radius: 16px !important;
}

#login ul.square {
    color: #fefdff !important;  
    background-color: transparent;
    margin: 0 0 0 22px;
    padding: 0 0 0 22px;
    }

#login ul.square li {
    color: #fefdff !important; 
    background-color: transparent;
    list-style: square outside !important;
    margin: 0 0 0 10px;
    
    padding: 3px 5px !important;
    }

#login p#backtoblog a:link {
    color: #2662ef;    
    background-color: transparent;
    font-size: 90%;
    font-weight: 400;
}

#login p#backtoblog a:hover, #login p#backtoblog a:focus {
    color:#ddff22;  
    background-color: transparent;
    font-size: 90%;
    font-weight: 400;
}

#loginform {
    border-radius:16px;
}

#login .loginform {
    border-radius:16px;
}

HTML

    <div id="login">
        <h1><a href="https://botanical-art.baeecorp.org" title="Botanical Artists for Education &amp; the Environment (BAEE)" tabindex="-1">Botanical Artists for Education &amp; the Environment (BAEE)</a></h1>

<form name="loginform" id="loginform" action="https://botanical-art.baeecorp.org/wp-login.php" method="post">
    <p>
        <label for="user_login">Username or Email Address<br>
        <input name="log" id="user_login" class="input" value="" size="20" type="text"></label>
    </p>
    <p>
        <label for="user_pass">Password<br>
        <input name="pwd" id="user_pass" class="input" value="" size="20" type="password"></label>
    </p>
        <p class="forgetmenot"><label for="rememberme"><input name="rememberme" id="rememberme" value="forever" type="checkbox"> Remember Me</label></p>
    <p class="submit">
        <input name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Log In" type="submit">
        <input name="redirect_to" value="https://botanical-art.baeecorp.org/wp-admin/" type="hidden">
        <input name="testcookie" value="1" type="hidden">
    </p>
</form>

Answer №1

The reason for this issue is the absence of a background color in the login form section. You can rectify this by following these steps:)

#loginform {
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
    border-radius: 16px;
    background-color: red; /* choose the desired background color */
    padding: 20px;
}

In wordpress, this may not work due to CSS overrides. In that case, you can use the updated code below:

#loginform {
-moz-border-radius: 16px!important;
-webkit-border-radius: 16px!important;
-ms-border-radius: 16px!important;
-o-border-radius: 16px!important;
border-radius: 16px!important;
background-color: red; // specify the desired background color
padding: 20px;

}

If the problem persists, please share the live URL with me and I will assist further.

Thank you!!

Answer №2

Through some exploration, I was able to uncover the solution to my inquiry within the customization settings of the Custom Login Page Customizer plugin. It became apparent that in order to apply CSS modifications to the plugin, they needed to be placed within the dedicated Custom CSS box of the plugin itself rather than in the WordPress Additional CSS panel. Despite trying various suggestions from answers and comments on this matter within the WordPress Customizer's Additional CSS panel, none proved to be effective. Furthermore, I resorted to installing an additional plugin which offered a multitude of features, albeit unnecessary for my specific requirement of rounding the login box. Realizing the redundancy of adding yet another bulky plugin simply for minor refinements, I opted to remove the excess plugin and delve into the settings of the Custom Login Page Customizer plugin where I eventually found the solution.

To access the necessary customization options, one must navigate through the WordPress Customizer to locate the "Login Customizer" menu. Within this menu lies the "Other" sub-menu positioned at the bottom, hosting a section specifically designated for entering Custom CSS. After transferring the ineffective CSS code from the WordPress Customizer's Additional CSS panel, I pasted it into the designated area under the "Other" menu of the Login Customizer:

form#loginform, form#lostpasswordform, form#resetpassform, form#registerform {
    -moz-border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -ms-border-radius: 16px !important;
    -o-border-radius: 16px !important;
    border-radius: 16px !important;
    padding: 20px;
    overflow: hidden;
}

dl.login-hello dt {
    color: #fefdff !important;  /*----Splashed white ----*/
    background-color: transparent;
    font-size: 100%;
    font-weight: normal;
    margin: 0 0 0.4em 0;
}

dl.login-hello dd {
    color: #fefdff !important;  /*----Splashed white ----*/
    background-color: transparent;
    font-size: 98%;
    font-weight: normal;
}

dl dd:before {
    content: " \2014 "  ;
    font-style: oblique;
    margin: 0;
    padding: 0;
    }

The result of saving these adjustments within the Custom CSS section of the Login Customizer led to the successful implementation of rounded corners on the login form.

Answer №3

If you're looking to add some style to your login form, try this:

form#loginform {
  border-radius: 16px;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Utilizing PHP to create an interactive website

As a novice PHP developer, I took to Google in search of tutorials on creating dynamic PHP websites. What I found was that many tutorials used the $_GET variable to manipulate URLs and make them appear like this: example.com/?page=home example.com/?page= ...

Do I have to include the sizes attribute when using w-descriptors in srcset?

After reading several articles discussing the use of srcset for device-pixel-density adjustments and art direction, I have come to a few conclusions: The State of Responsive Images in 2015 by Paddi Macdonnell srcset Part 2: The W descriptor and sizes att ...

occupy the full width of the available screen space (from one end of the container to the other

Currently, I am utilizing the Flexbox enabled version of Bootstrap 4 Alpha 3. Check it out on Jsfiddle body { background-color: lightgreen; } [class^="col"] { background: gold; border: 1px solid tomato; } <link href="https://cask.scotch.io/boo ...

Calculate the total width of LI elements and apply it to the parent UL or DIV

Is there a way to calculate the Total LI width and then set the width for the parent div? Here is an example of my code: <ul> <li>dsfdsfdsfds</li> <li>dsfdsfdsfds</li> <li>dsfdsfdsfds</li> <li>dsfdsfdsfds&l ...

Stop the infiltration of emotions into your style

Utilizing the JsonForms React Component to dynamically generate an HTML form in my web application. The framework I am using handles all view rendering on the server side. To integrate this component, I compiled a small react component by running npm run b ...

Using CSS to resize an element with both dimensions while maintaining its

Is it feasible to preserve a 1:1 aspect ratio on a div element using the CSS resize property? This particular illustration lacks an aspect ratio. Do you have any recommendations? ...

Hovering into Transition Time

My article card has a transition on the top attribute of the info div, which is supposed to be smooth and last for 0.3 seconds. However, the description suddenly appears during this transition. I'm trying to figure out why this is happening and how to ...

Adjust the dimensions and position of the notification box using Twitter Bootstrap

I am struggling to center and adjust the size to 80% of an alert box, but the text-center class is not achieving this for me. <div class="text-center"> <div class="alert alert-info" style="width: 80%;" role="alert"> <i class="fa fa- ...

Floating Div Elements

Trying to solve this seemingly simple problem has been quite the challenge for me. I have a container with multiple divs added to it, and I want these divs to position themselves freely within any available white space. However, they must follow a pattern ...

What could be causing the failure of this web component using shadow DOM when the HTML code includes multiple instances of the component?

Recently, a question was raised on this platform regarding the use of Selenium to access the shadow DOM. Curious about this topic, I delved into the MDN article Using shadow DOM and decided to replicate the code on my local machine. Surprisingly, it worked ...

Restrict the character count in the input field according to its width

Is there a way to restrict the number of characters in an input field based on its width? I have a dynamic input field with varying widths and I would like users to be able to type without their text extending outside of the input boundary. Using maxLeng ...

Use one tag to abbreviate multiple times

As I create a step-by-step guide, I want the audience to be able to hover over any word in the text and see its definition. However, I only want to define abbreviations once. Is there a method in html or css that allows me to achieve this? ...

The styling options for PHP table are limited

I have been assigned a task for homework that involves connecting a MySQL database to our PHP files and displaying the data in an HTML table. Although I have successfully connected to the database, I am facing difficulties styling the table. All other elem ...

Creating an AngularJS directive specifically for a certain <div> tag

Recently, I began learning angularjs and came across a script to change the font size. However, this script ended up changing all <p> tags on the entire webpage. Is there a way to modify the font size of <p> tags only within the <div class=" ...

Using jQuery to modify a CSS property when a specific option is chosen

I'm currently working on creating an option dropdown menu and I've hit a roadblock trying to display a textbox only when the 'other' option is selected. Here's what I have so far: <span id="con-country"><label for="count ...

What methods can be used to customize the font and background color of a website for different user groups?

Trying to incorporate a template into my project. My client has requested the following: The regular user area should feature a blue background. The professional user area should have an orange background. Is there a way to set up a condition to change ...

What is the best way to extend an image to fill the width of a webpage?

Can you advise me on how to expand the image to fit the width of my webpage? If possible, could you take a look at this website: Poklanjam The specific image I am referring to is the one of the city on the left-hand side. What additional CSS code should ...

Is it possible to apply two ngClass directives to a single div element in Angular 4?

When I click to start editing, a component is called for the editing process. In this component, I am unable to click on anything and the background turns black, which is okay. However, I would like for each ID that I select to edit to become active with a ...

When an element is set to a fixed position while scrolling, it causes the element to flicker

After implementing the jQuery plugin stickyjs on my website, I noticed a strange issue. While it works perfectly fine on my Mac, when using the mouse scroll wheel on my PC, the element blinks once rapidly as it reaches the top of the page. Interestingly, d ...

What could be causing this unexpected delay?

I have been working on improving the load time of my website as it was quite lengthy, but even after optimizations, I am facing issues specifically with the jQuery UI CSS images. If you could spare a moment, would you mind taking a look at this Pingdom te ...