You can include the jquery in index.php in the <head>
section.
How to include jquery to joomla2.5 article
-
26-06-2022 - |
Question
I am using joomla2.5,I need to have a jquery effect on one of my page(not the home page) so I am wondering can I include jquery to joomla article if not then what should I do?
La solution
Autres conseils
You can use addscript function in template to load jquery in the head section.
<?php
$document = JFactory::getDocument();
$document->addScript('/media/system/js/sample.js');
?>
But be aware that you have to use noConflict function, because joomla sometimes uses mootools framework.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow