Title: Plugin breaking jQuery for me?
Last modified: August 21, 2016

---

# Plugin breaking jQuery for me?

 *  Resolved [travislevell12](https://wordpress.org/support/users/travislevell12/)
 * (@travislevell12)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/plugin-breaking-jquery-for-me/)
 * Hello,
 * I’d really like to be able to use the functionality of this plugin on my site,
   but it seems to be breaking either Javascript or my jquery library.
 * Here is my code. This is the only place that I call jquery. These are also the
   only 2 scripts that I’m using (so far) on the site. I disabled all other plugins
   to see if BuddyPress Like was conflicting with another plugin to cause the problem,
   but with all of them disabled it still broke the page.
 *     ```
       <?php wp_enqueue_script('jquery') ?>
   
           <?php wp_head()?>
           <!-- Preloader -->
       <script>
       	//<![CDATA[
       		jQuery(window).load(function() { // makes sure the whole site is loaded
       			jQuery('#status').fadeOut(); // will first fade out the loading animation
       			jQuery('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
       			jQuery('body').delay(350).css({'overflow':'visible'});
       		});
       	//]]>
       </script>
   
           <script>
                jQuery(document).ready(function () {
   
                    jQuery('#slideout').hide();
   
                    // The function and animation of the slideout menu
   
                         jQuery('#hamburger').click(function(){
   
                             jQuery('#slideout').toggle(350);
   
                         });
       });
          </script>
       ```
   
 * It’s breaking the “hide” and “toggle.” The menu is only supposed to show when
   you click the button, but now it is just showing all the time. Sidenote: the 
   first script is for a site preloader that hides the page until everything is 
   loaded, then fades.
 * Could it be the way that I am loading jquery? Does anyone have a fix for this?
   I’d love to get this plugin working.
 * [https://wordpress.org/plugins/buddypress-like/](https://wordpress.org/plugins/buddypress-like/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [darrenmeehan](https://wordpress.org/support/users/darrenmeehan/)
 * (@darrenmeehan)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/plugin-breaking-jquery-for-me/#post-4868431)
 * This is not working
 *  Plugin Author [darrenmeehan](https://wordpress.org/support/users/darrenmeehan/)
 * (@darrenmeehan)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/plugin-breaking-jquery-for-me/#post-4868432)
 * *now

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin breaking jQuery for me?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-like.svg)
 * [BuddyPress Like](https://wordpress.org/plugins/buddypress-like/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-like/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-like/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-like/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-like/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [darrenmeehan](https://wordpress.org/support/users/darrenmeehan/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/plugin-breaking-jquery-for-me/#post-4868432)
 * Status: resolved