Table of Contents
The developer console is a powerful tool primarily intended for web developers and designers. It enables real-time inspection and modification of HTML and CSS for testing style changes before applying permanent adjustments to WordPress Appearance.
To access the developer console, simply hover your mouse over the element you wish to edit—in this case, the register button. Right-click the mouse and choose “Inspect” from the menu of options that appear.
Once the Developer Console is open, you’ll need to identify and target the specific button you want to customize. Look for a line of code that represents the button. It will typically be surrounded by HTML tags like <button>
, <input>
, or <a>
.
In this case, the button has a class called “pms-form-submit” that you can use to target it with CSS. To customize the register button within the registration form, you should also target the register form. Therefore, you should use the following CSS code: pms_register-form input.pms-form-submit{}
When customizing buttons, it’s crucial to pinpoint the precise IDs and classes associated with each form. Below are the key identifiers for some common forms:
#pms_register-form input.pms-form-submit
{}#pms_login input#pms_login
{}#pms_recover_password_form input[type="submit"]
{}#pms_edit-profile-form input[type="submit"]
{}Use these selectors as a starting point to effectively target and customize the buttons within each respective form. Understanding these identifiers is essential for crafting tailored CSS code in the next section.
The typical customization for buttons involves adjusting their background color, hover states, and borders.
Examples of CSS code for Register Button
<em>/* Example 1: Changing Background, Border and Text Color */</em>
#pms_register-form input.pms-form-submit {
background-color: #2D8BF9 !important; <em>/* Change the color of the button */</em>
border: 2px solid #2D8BF9 !important; <em>/* Change to your desired border color and</em> width */
color: #ffffff !important; <em>/* Change the color of the text */</em>
}
<em>/* Example 2: Adjusting Hover State */</em>
#pms_register-form input.pms-form-submit:hover{
background-color: #1A5FB1 !important;<em> /* Change to your desired hover color */</em>
border: 2px solid #1A5FB1 !important; <em>/* Change to your desired border color and width */</em>
}
The provided code can be used to customize the appearance of the register button. To extend this styling to another button for a PMS form, simply adjust the CSS selector. Replace the current class or ID with the one associated with your target button. (check the “Identifying IDs and Classes for Buttons” section for guidance.) For example, to stylize the login button, replace <em>#pms_register-form input.pms-form-submit</em>
with <em>#pms_login input#pms_login</em>
in your CSS code.
To add custom CSS code in WordPress, follow these steps:
Example:
Replace “your-button-class” with the actual class of your button and adjust the CSS properties as needed.
Now, your button should reflect the changes you made using the provided CSS code.
If you use on your site a block theme (for example twenty twenty-two theme), then you can find the Additional CSS section by:
Now, your button should reflect the changes you made using the provided CSS code.
Accept (recurring) payments, create subscription plans and restrict content on your website. Easily setup a WordPress membership site using Paid Member Subscriptions.
Get Paid Member SubscriptionsCombine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.
Get 25% off with the bundle