About this topic

  • Posted by robrat 1 year ago. There are 4 posts. The latest reply is from byron.
  • This topic is not resolved
  1. My website has a little javascript featured posts animation on the top of the site (betterretailing.com) and when I turn PhotoSmash on, it stops that working. I'm wondering if the way that MY site calls in jquery is at fault, and not actually the plugin. I call jquery in as so, and it looks a little messy to me...

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.cycle.all.min.js"></script>
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/script.js"></script>
    
    <?php
    	wp_enqueue_script('jquery');
    	wp_enqueue_script('jquery-ui-core');
    	wp_enqueue_script('jquery-ui-tabs');
    	wp_head();
     ?>
  2. Hi Robrat,
    Yes, the problem is:

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.3.2.min.js"></script>

    That's loading jQuery, and then you enqueue it below, which is almost right...but I think you have to have the enqueue in your functions.php file instead of your header.php file.

    So, if you remove that one line and then move your enqueue's to functions.php that might work...you might have to play around with it a little bit.

    Be sure you got <?php wp_head(); ?> in your header.php file also.

    hope that helps.
    BB

  3. Thanks for that, I have actually got the plugin *sort of* working, but am now having a problem whereby when I try to upload pictures from the page the plugin is at here: http://www.betterretailing.com/see-my-shop/user-uploaded-gallery/
    It starts to upload, progress bar goes, and then nothing more. Thanks to all your really great posts here I thought I had the problem on this thread http://smashly.net/community/topic/photos-will-not-upload#post-230
    but when I try to strip out all of my jquery hard-code calls, my original problem comes back and my scrolling homepage java stops working. Ack! Any ideas? I've been trawwwling the net for correct jquery calls and nothing seems to fix both problems! hah

  4. When I look at that source, there are 3 cases of jquery being loaded:

    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2'></script>

    <script type="text/javascript" src="http://www.betterretailing.com/wp-content/themes/gemer/js/jquery-1.3.2.min.js"></script>

    <script type='text/javascript' src='http://www.betterretailing.com/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>

    The last one is the good one.

    Here's a better thread addressing the issue:

    http://smashly.net/community/topic/photos-not-uploading-no-error

    You probably have some plugins that are not being friendly, and you'll have to change their code or try a different plugin.

    Hope that helps.

    BB

RSS feed for this topic