I am a beginner of joomla platform. I want to move the mootools.js and caption.js from header to footer. Is it possible to do? Any one can help me?
Asked
Active
Viewed 112 times
1 Answers
1
Follow this link to make it http://www.pbwebdev.com.au/blog/removing-mootools-core-js-caption-js-joomla
cut the code JHtml::_('behavior.caption');
and paste it in the footer..or you can directly remove them from head by commenting `
if ($debug || $konkcheck) {
JHTML::script('mootools-uncompressed.js', 'media/system/js/', false);
} else {
//JHTML::script('mootools.js', 'media/system/js/', false);
}
$loaded = true;
return;
}
function caption() {
//JHTML::script('caption.js');
}
`in behavior.php from the following path. **libraries\joomla\html\html**

Pramod Kumar Sharma
- 7,851
- 5
- 28
- 53
-
I have cut the code. How can i paste in footer. If any PHP tag need? Because I am not a programmer. – Shalini Subramani May 29 '12 at 08:49
-
addScript( '/media/system/js/caption.js' ); $document->addScript( '/media/system/js/mootools.js' ); ?> – Pramod Kumar Sharma May 29 '12 at 09:06