Better control for loading jQuery, Javascript, and CSS
Posted: February 10th, 2021, 8:43 pm
Hi,
Having looked into the core files, so that I can create a Bootstrap 5 theme for the frontend, I've noticed that the /includes/template_header.php is loading global jQuery, Javascript, and CSS into the header that will conflict with Bootstrap 5.
Would it be possible to allow for a theme PHP functions file, that overrides the core code for loading the required files for this?
I may have missed something that already allows for this, but couldn't see it.
Looks like a hook may be available, but that loads at the end, after this has already loaded.
Having looked into the core files, so that I can create a Bootstrap 5 theme for the frontend, I've noticed that the /includes/template_header.php is loading global jQuery, Javascript, and CSS into the header that will conflict with Bootstrap 5.
Would it be possible to allow for a theme PHP functions file, that overrides the core code for loading the required files for this?
I may have missed something that already allows for this, but couldn't see it.
Looks like a hook may be available, but that loads at the end, after this has already loaded.