Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add custom button color to Visual Composer button settings

Is there a way to add a custom color/value to the color drop down of the button settings in visual composer? The site I'm developing has lots of colored buttons and rather than overriding one of the existing button classes with css I'd rather add the color(s) to the drop down. Otherwise I have to explain to the client "when you want this color button you have to select x color from the drop down". Which is just confusing.

Thanks!

enter image description here

like image 547
Craig Harshbarger Avatar asked Feb 01 '26 21:02

Craig Harshbarger


1 Answers

Check this:

https://kb.wpbakery.com/docs/developers-how-tos/update-single-param-values/

Change all "cta_button" occurrences to "btn". Save the page with the button you want and the color you just created, then use Chrome to inspect the created element. It will come with a class named something like 'vc_btn_color-yourcolor'.

Just style that color on your style.css later.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!