Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • rikh Friend
    #146270

    Can anybody help me with turning mootools.js and caption.js scripts off for this template?

    korb Friend
    #324606

    open head.php block and comment second line with <!— code –>
    Note that this would stop mootools and will stop your menu hovering for all menu types.

    I haven’t found the caption js yet bu it has to be related to mootools.

    Regards,
    Danny

    rikh Friend
    #324609

    Hı Danny,
    Thanks a lot for reply. I’ve commented the line <?php JHTML::_(‘behavior.mootools’); ?>
    But nothing changed and I still have this code in the site page code:
    <script type=”text/javascript” src=”/media/system/js/mootools.js”></script>

    korb Friend
    #324610

    try to insist with refresh 🙂

    rikh Friend
    #324612

    I’ve even cleaned the cash it’s loading anyway

    musicinme Friend
    #325001

    Below is the code that inserted in head.php will cause the mootools library will not be attached to website. Of course, the administration panel Joomla! will continue to benefit from Mootools. Only the front of site will be relieved.

    <?php
    $user =& JFactory::getUser();
    if ($user->get('guest') == 1) {
    $headerstuff = $this->getHeadData();
    $headerstuff['scripts'] = array();
    $this->setHeadData($headerstuff); }
    ?>
    <jdoc:include type="head" />

    If you want to keep caption.js (some components, modules and plugins use it), you can choose to remove mootools only:

    <?php
    $headerstuff = $this->getHeadData();
    reset($headerstuff['scripts']);
    $moo = key($headerstuff['scripts']);
    unset($headerstuff['scripts'][$moo]);
    $this->setHeadData($headerstuff);
    ?>
    <jdoc:include type="head">

    Hope it will help you

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 3 voices, and was last updated by  musicinme 15 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum