| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www/wp-content/plugins/divi-pixel/admin/customizer/js/ |
Upload File : |
/*
* Script run inside a Customizer control sidebar
*
* Enable / disable the control title by toggeling its .disabled-control-title style class on or off.
*/
( function( $ ) {
wp.customize.bind( 'ready', function() { // Ready?
var customize = this; // Customize object alias.
// Array with the control names
// TODO: Replace #CONTROLNAME01#, #CONTROLNAME02# etc with the real control names.
var toggleControls = [
'#CONTROLNAME01#',
'#CONTROLNAME02#'
];
$.each( toggleControls, function( index, control_name ) {
customize( control_name, function( value ) {
var controlTitle = customize.control( control_name ).container.find( '.customize-control-title' ); // Get control title.
// 1. On loading.
controlTitle.toggleClass('disabled-control-title', !value.get() );
// 2. Binding to value change.
value.bind( function( to ) {
controlTitle.toggleClass( 'disabled-control-title', !value.get() );
} );
} );
} );
} );
} )( jQuery );