Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1380916
    WPTanis
    Participant

    Hey!
    I’m trying to follow these instructions:
    https://community.theme.co/kb/implementing-additional-button-colors/

    How would I add this to the style.css file of the X Child Theme? I can’t seem to get the syntax right.

    Thank you!
    Ken

    #1381031
    Friech
    Moderator

    Hi Ken,

    Thanks for writing in! Declaring a new style for button does not necessarily require a child theme. You can place your custom CSS on Custom > Global CSS on the Customizer (Appearance > Customize).

    Lets try the css below, add this on your custom CSS on Customizer.

    .mybtn-blue {
    	background-color: blue !important;
    	color: white !important;
    }

    Then on your button element add the class mybtn-blue


    screenshot

    Hope it helps, Cheers!

    #1381433
    WPTanis
    Participant

    Ah, I see what the problem is now from your sample code, thank you. I was following the example in the link in my original post and that example precedes my button name with “.x-btn” (.x-btn.my-btn), which must be for something else that I don’t understand.
    Thanks!
    Ken

    #1381578
    Darshana
    Moderator

    Hi Ken,

    If you’re still having any issues, please provide us with the link to your page so that we can check it for you.

    Thanks!

    #1381579
    Rupok
    Member

    Glad that you are all set now. Have a nice day!

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