CMTV
Well-known member
How to include external library (js and css files) in specific template that requires jQuery?
I tried this code in template
But I am getting an error:
This happens because jQuery is loaded at page footer (
How to load external library files after jQuery?
I tried this code in template
forum_view
:
HTML:
<xf:head option="questionthreads_iconpicker">
<!-- Iconpicker styles -->
<link rel="stylesheet" href="{{ base_url('src/addons/QuestionThreads/includes/libs/iconpicker/css/jquery.fonticonpicker.min.css') }}">
<link rel="stylesheet" href="{{ base_url('src/addons/QuestionThreads/includes/libs/iconpicker/css/jquery.fonticonpicker.grey.min.css') }}">
<!-- Iconpicker -->
<script src="{{ base_url('src/addons/QuestionThreads/includes/libs/iconpicker/jquery.fonticonpicker.min.js') }}"></script>
</xf:head>
But I am getting an error:
jQuery is not defined
.This happens because jQuery is loaded at page footer (
helper_js_global
template).How to load external library files after jQuery?
Last edited: