How to get a custom field in theme customizer to live update the element in preview window?

I have defined a solution. The transport type had to be changed from default refresh to postMessage to use the custom JS instruction. add_action(‘customize_register’, function($mgr) { //load the custom field class file include_once LIBPATH.’/classTplFormat.php’; // moved the JS into a file and loaded via enqueue // ASSETURL is a constant that holds theurl to the … Read more