Page 1 of 1

Better control for loading jQuery, Javascript, and CSS

Posted: February 10th, 2021, 8:43 pm
by markdaps
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.

Re: Better control for loading jQuery, Javascript, and CSS

Posted: February 11th, 2021, 8:04 am
by administrator
Thanks for posting the if you want to do that please share your exact requirements and we can do this for you

Re: Better control for loading jQuery, Javascript, and CSS

Posted: February 11th, 2021, 8:00 pm
by markdaps
I'll code this at my end, and ensure that it works as required, then I can post back to you to implement.

Re: Better control for loading jQuery, Javascript, and CSS

Posted: February 12th, 2021, 12:05 am
by jagdish
ok sure