• In a form builder it gives me the option to add a “css class.” I understand what that means, and I’ve added the class and css to the “additional css” in the theme customizer. But what I don’t know is how to input the class in the form that’s asking me for it. Do I need to include a # or a . in front of the name, something else, or nothing? I’ve tried each of these three options but the style changes are not displaying.

    Here is my code:

    .contactform-button {
       background-color: #E49854;

    So what would I use as the “css class”, what would be the actual name I should input?

    • This topic was modified 4 years, 6 months ago by t-p. Reason: Moved to Fixing WordPress from Developing with WordPress
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Try:

    .contactform-button {
       background-color: #E49854!important;
    }

    CLEAR ALL CACHE before viewing the edit.

    If the issue persists, I recommend asking at the form builder support forum so its developers and support community can help you with this.

    • This reply was modified 4 years, 6 months ago by t-p.
    Thread Starter fifthhouse

    (@fifthhouse)

    Thank you for the addition to the code. However I still don’t know what to input for the “css class” in the form. What do I put there?

    • This reply was modified 4 years, 6 months ago by fifthhouse.
    • This reply was modified 4 years, 6 months ago by fifthhouse.

    I see you are using the class .contactform-button
    Is this the class name on the button or a name you created? Just trying to clarify the issue.

    You can see what class they have assigned to the button by using your browsers inspect option.

    Thread Starter fifthhouse

    (@fifthhouse)

    It’s a name/class I created. So actually adding !important, worked!
    Thank you, I appreciate it. And in the form field css class, I just used the class name, without a . in front of it.

    • This reply was modified 4 years, 6 months ago by fifthhouse.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Beginner CSS Question’ is closed to new replies.