3

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

Craig Harshbarger
  • 1,863
  • 3
  • 18
  • 29

1 Answers1

4

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.

fsenna
  • 168
  • 1
  • 9
  • Thanks! I'll give this a try. – Craig Harshbarger Jul 17 '17 at 16:54
  • Any questions leave a comment and I'll try to help :) – fsenna Jul 18 '17 at 17:38
  • I cannot enter https://wpbakery.atlassian.net/wiki/display/VC/Update+Single+Param+Values - is there a free-to-access link? – Ralf Mar 23 '18 at 16:49
  • Apparently they changed the URL, will update my answer. URL now here: https://kb.wpbakery.com/docs/developers-how-tos/update-single-param-values/ – fsenna Mar 26 '18 at 12:53
  • It is obnoxious that such a simple thing has to be so difficult. VC needs to let you dynamically define colors somewhere in the UI and then load them in this box. – JamesHoux Jan 08 '19 at 22:08