Support » Fixing WordPress » mootools conflict with others library

  • Resolved brienne


    As many others who wanted to use this wonderful library i.e. Mootools, inluding it in wordpress was a pain as it conflict with others one.

    Check if you use the library jQuery in your header.php of your wp theme:
    <script type=”text/javascript” src=””></script>
    then visit those pages:

    To use your mootools library, you must for ex. insert this piece of code after jQuery and the other library have both loaded:

    (for me it was in the header.php page)

Viewing 4 replies - 1 through 4 (of 4 total)
  • oh thanks.

    i tried it. still not working for me. but in some portions of my site its working. I thought its the php speedy plugin, i deactivated it but no..

    what do you think would be the other problem?

    Use the noscript addons for firefox then try to activate step by step all scripts (in the meantime check if mootools and the associated plug-in works for your all your site)
    To be honest, it’s a bit tricky to give you THE solution because I think mootools is not a standardized tool.

    for noobslide, my configuration in the header.php of wordpress theme is (and it works):
    – just before <?php cufon(‘header’); ?> insert the CSS, JS code and the tiny script [window.addEvent(‘domready’,function(){] !!!CHOOSE only one code sample and ERASE the the other’s code
    -after <script type=”text/javascript” src=””></script> INSERT
    -Then your
    <div class=”sample”>
    <div class=”mask_i”>
    <div id=”box_i” >
    somewhere in your <body>

    the lightbox plugin works fine with wordpress

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mootools conflict with others library’ is closed to new replies.