A Cozmoslabs Product
Documentation / CSS Customization Guide for Buttons

CSS Customization Guide for Buttons

How to use the Developer Console

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.

Identify the Desired Buttons

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.

Target the Desired Button

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{}

Identifying IDs and Classes for Buttons

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:

  1. Register Form
    • CSS Selector: #pms_register-form input.pms-form-submit{}
  2. Login Form
    • CSS Selector: #pms_login input#pms_login{}
  3. Recover Password Form
    • CSS Selector: #pms_recover_password_form input[type="submit"]{}
  4. Edit Profile Form (inside My Account Form)
    • CSS Selector: #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.

Creating Custom CSS for Button Styling

The typical customization for buttons involves adjusting their background color, hover states, and borders.

Examples of CSS code for Register Button

/* Example 1: Changing Background, Border and Text Color */
#pms_register-form input.pms-form-submit {
    background-color: #2D8BF9 !important; /* Change the color of the button */
    border: 2px solid #2D8BF9 !important; /* Change to your desired border color and width */
    color: #ffffff !important;            /* Change the color of the text */
}
/* Example 2: Adjusting Hover State */
#pms_register-form input.pms-form-submit:hover{
    background-color: #1A5FB1 !important; /* Change to your desired hover color */
    border: 2px solid #1A5FB1 !important; /* Change to your desired border color and width */
}

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 #pms_register-form input.pms-form-submit with #pms_login input#pms_login in your CSS code.

How to add CSS code in WordPress

Classic themes

To add custom CSS code in WordPress, follow these steps:

  1. Navigate to the WordPress Dashboard:
    • Log in to your WordPress admin panel.
  2. Go to the Customizer:
    • In the admin menu, navigate to “Appearance” “Customize.”
  3. Open the Additional CSS Section:
    • Look for the “Additional CSS” option and click on it.
  4. Enter Your CSS Code:
    • In the text area provided, enter your CSS code to customize the button.

Example:

Replace “your-button-class” with the actual class of your button and adjust the CSS properties as needed.

  1. Publish Changes:
    • Click the “Publish” button to apply your custom CSS.

Now, your button should reflect the changes you made using the provided CSS code.

Block themes

If you use on your site a block theme (for example twenty twenty-two theme), then you can find the Additional CSS section by:

  1. Navigate to the WordPress Dashboard:
    • Log in to your WordPress admin panel.
  2. Go to the Editor:
    • In the admin menu, navigate to “Appearance” “Editor.”
  3. Click on the “Style” button from the Design menu.
  4. Click on the Pencil icon (“Edit Style”):
    • If your theme supports style variation.
  1. Enter Your CSS Code:
    • In the text area provided, enter your CSS code to customize the button.
  1. Save Changes:
    • Click the “Save” button to apply your custom CSS.

Now, your button should reflect the changes you made using the provided CSS code.

The Ultimate Membership Bundle

Combine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.

Get 25% off with the bundle

Help & Support

We’re here to help you every step of the way.

Open a Support Ticket