Contact form Submit button color
-
Okay…last question for a while! I’ve added a contact form to my Contact page and am trying to figure out how to change the color of the submit button at the very bottom. I used the Inspect Element and tried the code below but no luck. Any help would be appreciated. That blue looks really wrong.
.contact-form-46 .pushbutton-wide input [type=”submit”] {
color: #FFFFFF !important;
}The blog I need help with is: (visible only to logged in users)
-
Hi there, the submit button background color is a CSS3 linear gradient. If you want just a solid color for the button, add the following to your custom CSS and edit the background color code:
button, html input[type="button"], input[type="reset"], input[type="submit"] { background: #CC0000; }If you wish to keep the gradient, you will have to have two colors, a top color and a bottom color and replace the color codes in the following multiple background declarations. The reason there are so many is because some browsers have their own way of doing gradients. In the following, the first color number in each background declaration is the top color, and the second the bottom color. The first background declaration with only one color number is the fall-back for older browsers that do not support gradients.
button, html input[type="button"], input[type="reset"], input[type="submit"] { background: #fafafa; background: -moz-linear-gradient(top, #589fe6 60%, #468cd4 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(60%,#589fe6), color-stop(100%,#468cd4)); background: -webkit-linear-gradient(top, #589fe6 60%,#468cd4 100%); background: -o-linear-gradient(top, #589fe6 60%,#468cd4 100%); background: -ms-linear-gradient(top, #589fe6 60%,#468cd4 100%); background: linear-gradient(top, #589fe6 60%,#468cd4 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#589fe6', endColorstr='#468cd4',GradientType=0 ); } -
Thank you so much for taking the time to reply in such detail. I’ll copy and keep this info for future reference. For now, I’m happy with a solid color and with your help I was even able to remove the “box-shadow”!
Thanks again!
-
-
So, I was able to get the gradient to work like a charm. However, my issue is that there is a thin strip of color underneath the button (but I’m assuming still part of the button) that I can’t seem to get to change…my other question is how to change the hover color of the button.
-
I figured out how to change the color of the hover…but that little strip underneath will be the bane of my existence…
-
@adminjsa, your site is self-hosted, which means we do not have access to the dashboard of your site, and looking at the public side, I am not seeing any contact page listed in the menu, which means I cannot look at it. If you can make the contact page public, I can take a look and see what we can do about the color beneath the button. Also, can you confirm that you are talking about this site: http://jsasanantonio.com/ ?
-
-
-
Thanks a lot! Below is the code to change the button color. I included a background color declaration as well as text color and a border radius just in case.
.contact-submit .pushbutton-wide { background-color: #5896ac; border-radius: 5px; color: #FFFFFF; } -
-
-
Ok. So I changed the theme of the site, and added a login widget. That all seems to be working fine. Except for that the Forums page still allows for non-members to view it. I double and triple checked the settings…and all of the pages except for the forums page is doing what it should. Also…the top part (again, only on the forums page) where it has the yellow accent line and page title, is further up, almost smooshed up to the top. Any idea how to fix these issues?
-
@adminjsa, we can help you with CSS and theme specific questions since you are using a theme that was created here, but your site is self-hosted and using the software from WordPress.org, and the best place to ask about that would be at http://wordpress.org/support/ . We don’t have access to your dashboard, so we cannot help with this particular issue.
Just off the top of my head though, if you are using the widget visibility feature, check the login widget to make sure you have not excluded it from your forum pages.
-
-
-
- The topic ‘Contact form Submit button color’ is closed to new replies.