WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Like
[resolved] Plugin breaking jQuery for me? (3 posts)

  1. travislevell12
    Member
    Posted 10 months ago #

    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/

  2. darrenmeehan
    Member
    Plugin Author

    Posted 2 months ago #

    This is not working

  3. darrenmeehan
    Member
    Plugin Author

    Posted 2 months ago #

    *now

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.