x

What is the class I would have to modify to change the color of a button?

I am using a template where the button color choices really do not match the button colors for our branding.  What is the name of the class I would have to change for the button color?

Much thanks in advance!

-Sig

1,422 Views
Message 1 of 5
Report
1 Best Answer

Best Answer

You can discover the class name of a button, by using your Browser's Development tools to "inspect" the underlying code.

  • In Firefox, select Tools | Web development, then select "Inspector".
  • In Chrome, fomr the dotted menu, select More Tools | Developer tools, then click the selector icon.

Click the links above for more information. I'm not sure about MS Internet Explorer / Edge, nor on the Mac.

View Best Answer >

1,403 Views
Message 6 of 5
Report
4 REPLIES 4

Hello Sig! While we can't advise you on the coding details from here, you may want to consider working in Theme options if you aren't familiar with the process already, as it can save a few headaches.

If you'd prefer to code it though, go for it! Just remember to save often!

1,411 Views
Message 6 of 5
Report

Best Answer

You can discover the class name of a button, by using your Browser's Development tools to "inspect" the underlying code.

  • In Firefox, select Tools | Web development, then select "Inspector".
  • In Chrome, fomr the dotted menu, select More Tools | Developer tools, then click the selector icon.

Click the links above for more information. I'm not sure about MS Internet Explorer / Edge, nor on the Mac.

1,404 Views
Message 6 of 5
Report

That was it.  For those looking in the future this was the code I changed:

.wsite-button,
.wsite-editor .wsite-button {
    background: #84BD00 ;
    color: #fff !important;
          border-radius: 0.188em;
    display: inline-block;
    font-size: 1em !important;
    padding: 0;
}
1,379 Views
Message 6 of 5
Report

It is worth pointing out that the CSS would differ, depending on the theme that has been chosen.

1,367 Views
Message 6 of 5
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.