Hi,
This is the php code we used on all version of Joomla
Joomla 2.5
if(!JFactory::getApplication()->get('jquery')){
JFactory::getApplication()->set('jquery',true);
$document = JFactory::getDocument();
$document->addScript(JUri::root() . "templates/template_name/js/jquery.js");
}
Joomla 3.x (no conflict mode):
JHtml::_('jquery.framework');
Joomla 3.x (normal mode):
JHtml::_('jquery.framework', false);
You need to insert this code into the index.php of your templateÂ
Best RegardsÂ
PCMShaper Team
Already have an account? Login into comment