Edit File by line
/home/barbar84/www/wp-conte.../themes/twentyni.../js
File: customize-controls.js
/**
[0] Fix | Delete
* File customize-controls.js.
[1] Fix | Delete
*
[2] Fix | Delete
* Theme Customizer enhancements for a better user experience.
[3] Fix | Delete
*
[4] Fix | Delete
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
(function() {
[8] Fix | Delete
[9] Fix | Delete
wp.customize.bind( 'ready', function() {
[10] Fix | Delete
[11] Fix | Delete
// Only show the color hue control when there's a custom primary color.
[12] Fix | Delete
wp.customize( 'primary_color', function( setting ) {
[13] Fix | Delete
wp.customize.control( 'primary_color_hue', function( control ) {
[14] Fix | Delete
var visibility = function() {
[15] Fix | Delete
if ( 'custom' === setting.get() ) {
[16] Fix | Delete
control.container.slideDown( 180 );
[17] Fix | Delete
} else {
[18] Fix | Delete
control.container.slideUp( 180 );
[19] Fix | Delete
}
[20] Fix | Delete
};
[21] Fix | Delete
[22] Fix | Delete
visibility();
[23] Fix | Delete
setting.bind( visibility );
[24] Fix | Delete
});
[25] Fix | Delete
});
[26] Fix | Delete
});
[27] Fix | Delete
[28] Fix | Delete
})();
[29] Fix | Delete
[30] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function