Created
September 20, 2013 15:40
-
-
Save Otto42/6639477 to your computer and use it in GitHub Desktop.
How to set the color picker and the control in the customizer via JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
control = wp.customize.control.instance('header_textcolor'); | |
picker = control.container.find('.color-picker-hex'); | |
control.setting.set('#FFFFFF'); | |
picker.wpColorPicker('color', control.setting() ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment