Accessing theme customizer farbtastic object instances

I have multiple individual color pickers set up in the theme customizer, which results in several instances of the farbtastic color picker.

I am trying to find the jQuery/JavaScript instance variable for each of these, just can’t seem to find a reference to them anywhere. I want to be able to set each farbtastic color manually, i.e. I need to access the color pickers setColor() method.

Read More

As a test, I can set a global JS var in customize-controls.js, in the color picker section, and can access this via Chrome console easy enough. But I need to do the same thing by accessing the default farbtastic instances. I just can’t find them!

Related posts

Leave a Reply