How to show associated fields if checkbox is checked in customize widget screen using wp_customize?

This is possible with JavaScript. You have to add an event listener to the checkbox and then show/hide the inputs depending on the checked state. Here is an example: checkbx = document.getElementById(“checkbox-id”) input1 = document.getElementById(“input1-id”) input2 = document.getElementById(“input2-id”) checkbx.addEventListener(“change”, () => { if(checkbx.checked){ input1.style.display = “block”; input2.style.display = “block”; }else{ input1.style.display = “none”; input2.style.display = … Read more

File execution order

The problem is this: <script src=”http://w.sharethis.com/button/buttons.js”></script> Try to add this to the body or footer of your site and then remove the link to w.sharethis.com. Because this not a local js it will not be cached and this will show as a js / css error in pagespeed. You could save this as a local … Read more