Add body class in the begin of the style for example:
body .wpcf7 {
background-color: transparent;
}
/* Contact Form 7 field label */
body .wpcf7 .wpcf7-form-control-wrap > label {
font-family: "Roboto", sans-serif !important;
font-size: 12px !important;
font-weight: bold !important;
color: #ffffff !important;
display: block !important;
margin-bottom: 20px !important; /* Adjust the gap between label and field */
}
and write your styles.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Hello how can I edit/override the default theme settings for the contact form 7?
here is the CSS
The gap between the label and the field doesnt apply
And the button is in the theme style but I want it to be like the CSS
Attached files: image_2023-04-20_192918846.png
Hi,
Add body class in the begin of the style for example:
and write your styles.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
Hello,
the labels now work but the button and the asterisk dont
ASTERISK
body .wpcf7 .wpcf7-form-control-wrap > label.wpcf7-required:after {
content: "*";
color: #E04562;
margin-left: 4px;
}
BUTTON
body .wpcf7 input[type="submit"] {
background-color: #17A8E3;
color: #FFFFFF;
font-family: "Roboto", sans-serif;
font-size: 14px;
font-weight: 500;
border-radius: 33px;
height: 35px;
width: 15px;
border: none;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
/* Contact Form 7 submit button hover state */
body .wpcf7 input[type="submit"]:hover {
background-color: #008FCA;
color: #FFFFFF;
}
Attached files: image_2023-04-22_142723110.png
Hi,
Add !important to the style:
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
Hello,
the button text isnt centered, its like the text position is fixed and the button just cuts it out
/* Contact Form 7 submit button */
body .wpcf7 input[type="submit"] {
background-color: #17A8E3 !important;
color: #FFFFFF !important;
font-family: "Roboto", sans-serif !important;
font-size: 14px !important;
font-weight: 500 !important;
text-transform: capitalize !important;
border-radius: 33px !important;
height: 40px !important;
width: 120px !important;
border: none !important;
cursor: pointer !important;
transition: all 0.3s ease-in-out !important;
line-height: 40px !important; /* updated to match the height value */
margin-top: 10px !important;
margin-right: 30px !important;
padding-right: 20px !important; /* added 20px right padding */
}
/* Contact Form 7 submit button hover state */
body .wpcf7 input[type="submit"]:hover {
background-color: #008FCA !important;
color: #FFFFFF !important;
}
Hi,
CSS code:
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
Thank you,
It works now!