Tagged: x
-
AuthorPosts
-
May 17, 2016 at 2:59 am #995077
gavgeorgeParticipantHi there,
I have some css in the Customizer to change our button color from blue to green on certain pages of our site. Recently it stopped working, and all buttons are now blue except for a tiny green border around the ones that should be green.
The customizer css is:
.x-btn-cta {
color: #ffffff;
border-color: #1a9e00;
}.x-btn-cta:hover {
color: #ffffff;
border-color: #199301;
}And I’ll send you the URL in a separate email.
Can you help?
Gav
May 17, 2016 at 3:03 am #995081
ChristopherModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
May 17, 2016 at 3:09 am #995084
gavgeorgeParticipantThis reply has been marked as private.May 17, 2016 at 3:33 am #995102
ChristopherModeratorHi there,
Please update your code to :
x-btn-cta { color: #fff; border-color: #1a9e00 !important; border-width:2px; background-color: #1a9e00 !important; }Hope it helps.
May 17, 2016 at 7:56 am #995338
gavgeorgeParticipantThis makes the background green and the button is still blue. We need a green button and transparent background. Thanks
May 17, 2016 at 8:52 am #995438
JoaoModeratorHi george,
Did you check your Customizer Button Settings to be sure they are set according to your wishes?
Please try using this code instead of the code above provided.
You can change the color of “color: #fff” to another color if you want to change the color of the button text and if you would like a thicker border you can change the value of border-width:
x-btn-cta { color: #fff; border-color: #1a9e00 !important; border-width: 2px; background-color: transparent !important; } x-btn-cta:hover { color: #fff; border-color: #1a9e00 !important; border-width: 2px; background-color: transparent !important; }Hope that helps,
Joao
May 17, 2016 at 6:52 pm #996321
gavgeorgeParticipantHi,
This is not the problem.
The button settings in customizer are correct as the default buttons are blue.
The button text is fine at color #fff.
The color of the button itself is the problem.
Please see attached – this is the result when x-btn-cta is the button class.
May 17, 2016 at 10:20 pm #996659
John EzraMemberHi there,
Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
.x-alert.x-alert-muted.x-alert-block a.x-btn.x-btn-cta { background-color: #1a9e00; }Hope this helps โ thanks!
May 17, 2016 at 10:20 pm #996660
John EzraMemberHi there,
Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
.x-alert.x-alert-muted.x-alert-block a.x-btn.x-btn-cta { background-color: #1a9e00; }Hope this helps โ thanks!
May 17, 2016 at 11:00 pm #996694
gavgeorgeParticipantBrilliant! Thanks John.
May 17, 2016 at 11:53 pm #996752
John EzraMemberYouโre most welcome! ๐
May 18, 2016 at 6:40 pm #998329
gavgeorgeParticipantHi again,
I’ve just discovered the new code you provided doesn’t work on buttons with marketing circles (circle=”true”).
How can I do this on selected buttons?
Thanks
May 18, 2016 at 11:45 pm #998790
RupokMemberHi there,
Can you provide the exact URL where the button is being used?
Cheers!
May 19, 2016 at 12:06 am #998812
gavgeorgeParticipantThis reply has been marked as private.May 19, 2016 at 2:27 am #998941
FriechModeratorHi There,
Look for this custom css code on your customizer
.x-btn.x-btn-cta:hover { color: #fff; border-color: #199301; }And update it to this:
.x-btn.x-btn-cta:hover, .x-btn-circle-wrap.x-btn-cta a { background-color: #1a9e00; color: #fff; border-color: #199301; }Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-995077 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
