Support » Fixing WordPress » Simple Jquery stopped working: addClass()

  • I am having a puzzling problem. A very simple piece of jquery just stopped working. It’s no longer adding the class; it doesn’t show in Firebug or the Chrome tools.

    Here it is:

    <script type=”text/javascript”>

    $(‘#primary, #secondary’).addClass(‘equal_columns’);

    What I’ve tried:

    Replace jQuery(document).ready(function($) with $(document).ready(function()

    Put script in footer.

    Put script before or after wp_head();

    Any ideas?


  • The topic ‘Simple Jquery stopped working: addClass()’ is closed to new replies.