Tagged: cornerstone
-
AuthorPosts
-
December 4, 2016 at 1:02 pm #1280671
Hi,
I´d like a submit/send button somewhat like this one: https://snag.gy/hxn4Dq.jpg
Can you help me with this?
(andreasbjerve.com)
December 4, 2016 at 1:04 pm #1280673…whose button background turns black and “send” text turns white upon hover…
December 4, 2016 at 2:37 pm #1280695I found out I can get most of these effects through the appearance menu. I just want control over the border (width – height) of the button and the fill hover color…
Thanks!
December 4, 2016 at 6:26 pm #1280828Hello Andreas,
I can’t see your site because it is under construction. Although we’re glad you figured out other effects.
For regular buttons we can add custom class on the button class field. For example, add like custom-btn. Then on Appearance > Customize > Custom > Edit Global CSS add the following:
.custom-btn{ border: 2px solid red; /*2px is border width and red is border color*/ padding: 20px 30px; /*20px is top and bottom padding. It will increase button height. 30px is left and right padding*/ } .custom-btn:hover{ background-color: red; /*Change red to your preferred background color*/ }
If this doesn’t work as expected, please do share your site credentials so we can check further.
Cheers!
December 5, 2016 at 3:59 am #1281335Thanks! This might work – now I want this code applied to a Contact Form 7 “send” button, so where do I target that button? In the Contact Form 7 settings?
December 5, 2016 at 4:14 am #1281345Hi There,
Please try with this CSS:
.input.wpcf7-form-control.wpcf7-submit { border: 2px solid red; /*2px is border width and red is border color*/ padding: 20px 30px; /*20px is top and bottom padding. It will increase button height. 30px is left and right padding*/ } .input.wpcf7-form-control.wpcf7-submit:hover{ background-color: red; /*Change red to your preferred background color*/ }
Hope it helps 🙂
December 5, 2016 at 7:24 pm #1282436This reply has been marked as private.December 6, 2016 at 2:06 am #1282708Hi there,
Please update previous code to :
input.wpcf7-form-control.wpcf7-submit { border: 2px solid #000; /*2px is border width and red is border color*/ padding: 10px 30px; /*10px is top and bottom padding. It will increase button height. 30px is left and right padding*/ float:left; border-radius:0; } input.wpcf7-form-control.wpcf7-submit:hover{ background-color: red; /*Change red to your preferred background color*/ }
Hope it helps.
December 6, 2016 at 2:27 am #1282727Perfect! Thanks:)
Just a side question; I´ve done some CSS customizing on the various pages of the site now, will they be affected by future updates? Should I have done them in the child theme? And in that case, how does one transfer current changes over to child theme (and preview them etc.)? I have one but havent used it yet, as I´m pretty new to this.
Thanks!
December 6, 2016 at 4:15 am #1282840If you’ve placed your CSS in the Customizer or Cornerstone Custom CSS, they won’t get overwritten. Only the template files will be overwritten and that includes style.css
Thanks.
December 6, 2016 at 4:42 am #1282866Ah, I see. Thanks a lot!
December 6, 2016 at 5:50 am #1282960You’re welcome.
-
AuthorPosts