Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #995077
    gavgeorge
    Participant

    Hi 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

    #995081
    Christopher
    Moderator

    Thanks 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.

    #995084
    gavgeorge
    Participant
    This reply has been marked as private.
    #995102
    Christopher
    Moderator

    Hi 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.

    #995338
    gavgeorge
    Participant

    This makes the background green and the button is still blue. We need a green button and transparent background. Thanks

    #995438
    Joao
    Moderator

    Hi 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

    #996321
    gavgeorge
    Participant

    Hi,

    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.

    #996659
    John Ezra
    Member

    Hi 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!

    #996660
    John Ezra
    Member

    Hi 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!

    #996694
    gavgeorge
    Participant

    Brilliant! Thanks John.

    #996752
    John Ezra
    Member

    Youโ€™re most welcome! ๐Ÿ™‚

    #998329
    gavgeorge
    Participant

    Hi 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

    #998790
    Rupok
    Member

    Hi there,

    Can you provide the exact URL where the button is being used?

    Cheers!

    #998812
    gavgeorge
    Participant
    This reply has been marked as private.
    #998941
    Friech
    Moderator

    Hi 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!

  • <script> jQuery(function($){ $("#no-reply-995077 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>