I'm using multi site with only one site. I want to force my parent theme NOT to call any css/js. In the same time I want to force my child theme to include the new CSS/JS using its function.php file.

I saw many advice across this great portal but none of them works with me. My problem that I couldn't prevent the parent theme function.php to stop loading CSS/JS

Can you please explain with example once for CSS and one for Js?

Thank you.

  • what parent theme are you using? – Michael Jun 26 '17 at 22:36
  • I'm using pointfinder and it has dynamic css – Tariq Ahmed Jun 26 '17 at 22:41
  • 3
    as you are using a commercial parent theme, consider to contact the theme's developer for help. – Michael Jun 26 '17 at 23:12
  • you say: "I couldn't prevent the parent theme function.php to stop loading CSS/JS" why? How does the parent theme loads CSS/JS? Cany post the code? – gmazzap Jun 29 '17 at 16:19

As far as i know the handle of the stylesheet will be the ID given to the element in the markup. If you can't find the enqueue function in the mothertheme you can inspect the site to find it.

If you have the ID you can use :

add_action('wp_footer', function() {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.