Melody Scott
asked on
Cannot Style a WP Forms Button
Please see web page truenasreseller.com/truena s/. Using wordpress with a Divi theme and WPForms Basic license.
The form on the right has a next button that I have been trying to style. I have tried adding this to the general theme's CSS:
div.wpforms-container-full .wpforms-form button .wpforms-page-next {
background: #2193d1;
border-width: 0px!important;
font-family: 'Open Sans',Helvetica,Arial,Luci da,sans-se rif;
color: #fff!important;
}
I also have this already in the CSS, and it's working on the submit button:
/*** change color of wp-forms button***/
div.wpforms-container-full .wpforms-form input[type=submit],
div.wpforms-container-full .wpforms-form button[type=submit] {
background-color: #00aeef; /* Blue background */
border: 1px solid #04a3df; /* Dark blue border */
color: #fff; /* Text color */
font-size: 1em; /* Size of text */
padding: 10px 15px; /* Distance between text and border */
}
Within WP Forms, when I click on that button, it's got an option to add CSS classes. I tried adding et_pb_button et_pb_button_2 et_pb_module et_pb_bg_layout_dark, which is the class of the other blue buttons on the page. Also not working.
Can you help? Thanks!
The form on the right has a next button that I have been trying to style. I have tried adding this to the general theme's CSS:
div.wpforms-container-full
background: #2193d1;
border-width: 0px!important;
font-family: 'Open Sans',Helvetica,Arial,Luci
color: #fff!important;
}
I also have this already in the CSS, and it's working on the submit button:
/*** change color of wp-forms button***/
div.wpforms-container-full
div.wpforms-container-full
background-color: #00aeef; /* Blue background */
border: 1px solid #04a3df; /* Dark blue border */
color: #fff; /* Text color */
font-size: 1em; /* Size of text */
padding: 10px 15px; /* Distance between text and border */
}
Within WP Forms, when I click on that button, it's got an option to add CSS classes. I tried adding et_pb_button et_pb_button_2 et_pb_module et_pb_bg_layout_dark, which is the class of the other blue buttons on the page. Also not working.
Can you help? Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks so much!! Extra space, I might have never seen that. Very much appreciated!
div.wpforms-container-full
It is in the forms CSS
Place it in your style.css and you may need to use !important on your definitions