please go through below. copy and paste the above joomlaheader tag.
<?php
if ($menu->getActive() == $menu->getDefault()) {
$headData = $doc->getHeadData();
$scripts = $headData['scripts'];
//remove your script, i.e. mootools
unset($scripts['/canvasink/media/system/js/mootools-more.js']);
unset($scripts['/canvasink/media/system/js/mootools-core.js']);
$headData['scripts'] = $scripts;
$doc->setHeadData($headData);
}
?>
<?php
if ($menu->getActive() == $menu->getDefault()) {
$headData = $doc->getHeadData();
$scripts = $headData['scripts'];
//remove your script, i.e. mootools
unset($scripts['/canvasink/media/system/js/mootools-more.js']);
unset($scripts['/canvasink/media/system/js/mootools-core.js']);
$headData['scripts'] = $scripts;
$doc->setHeadData($headData);
}
?>
No comments:
Post a Comment