Forums

SimpleMap Store Locator
[resolved] Nivo Slider Conflict (11 posts)

  1. bcotten
    Member
    Posted 1 year ago #

    I'm having a problem with the Nivo slider on my site breaking when I activate the SimpleMap plugin.

    The slider is on the front page only, and there are 3 images that rotate automatically. When SM is enabled, only one image displays - no rotation - and the navigation arrows on the left and right of the images disappear.

    I have it enabled now so that you can see. I really like SimpleMap and would rather use this than Store Locator, but Store Locator doesn't break the slider.

    Any insight into this problem? I'm thinking it's some kind of Java conflict?

    http://cp1.mcg.net/~truebrid/

    http://wordpress.org/extend/plugins/simplemap/

  2. Glenn Ansley
    Member
    Posted 1 year ago #

    Hi,
    We actually released a fix for this two days ago.
    It looks like you're still using 2.0.1: http://cp1.mcg.net/~truebrid/wp-content/plugins/simplemap/readme.txt

    Can you upgrade to 2.0.2 (should be a notification in your plugin admin) and let me know if that fixes it?

    Thanks.

  3. bcotten
    Member
    Posted 1 year ago #

    Thanks for the reply. I just logged in and updated and no change. Simple Map is currently the only active plugin, just to be sure.

    Any other ideas?

  4. Glenn Ansley
    Member
    Posted 1 year ago #

    Hmm. Try replacing the following and see what happens:
    I just replaced $ with jQuery in the block of JS

    <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider({
    			effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
    			slices:15,
    			animSpeed:500, //Slide transition speed
    			pauseTime:5000,
    			startSlide:0, //Set starting Slide (0 index)
    			directionNav:true, //Next and Prev
    			directionNavHide:false, //Only show on hover
    			controlNav:false //1,2,3...
    		});
            	$(document).ready(function() {
    		$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'light_square'});
    	});
        });
        </script>

    with this:

    <script type="text/javascript">
        jQuery(window).load(function() {
             jQuery('#slider').nivoSlider({
    			effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
    			slices:15,
    			animSpeed:500, //Slide transition speed
    			pauseTime:5000,
    			startSlide:0, //Set starting Slide (0 index)
    			directionNav:true, //Next and Prev
    			directionNavHide:false, //Only show on hover
    			controlNav:false //1,2,3...
    		});
            	 jQuery(document).ready(function() {
    		 jQuery("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'light_square'});
    	});
        });
        </script>
  5. bcotten
    Member
    Posted 1 year ago #

    done. no visible change. Thanks again.

  6. Glenn Ansley
    Member
    Posted 1 year ago #

    Ah. it looks like you have jQuery source included too many times.
    SimpleMap is enqueueing jQuery via wp_enqueue_script so you're going to have to contact the other plugin and ask them to modify their code to enqueue jQuery correctly.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> on line 28 and <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js?ver=3.1'></script> on line 73.

    I'm in the middle of something tonight. If you haven't gotten it figured out tomorrow though, give me a ping and I'll try to help you out.

  7. bcotten
    Member
    Posted 1 year ago #

    I contacted the theme developer, and here is what he said:

    hi our theme includes latest version of jquery so you shouldn’t delete that part from functions.php, you should remove from plugin including older jquery, and then in plugin javascript change $ to jQuery…and it should work

    This doesn't help me much. Does it you?

  8. Glenn Ansley
    Member
    Posted 1 year ago #

    Yeah. It doesn't look like the developer is choosing to stick to WordPress guidelines for JS. That's ok I guess but it will probably continue to be a problem for you.

    I've enqueued my jQuery correctly so you may want to add wp_dequeue_script( 'jquery' ); to the end of your theme's function.php file. I'm giving advice without testing so we may have to fire it off later by adding it to a hook if that doesn't work. Let me know.

  9. bcotten
    Member
    Posted 1 year ago #

    Yeah, I had the same notion from the response.

    I've made your change to my theme's functions.php and no visible change. Shall we try option number 2?

  10. bcotten
    Member
    Posted 1 year ago #

    BTW, I can send you a link to the theme files if it would help.

  11. bcotten
    Member
    Posted 1 year ago #

    I've abandoned the theme at this point. Too many issues across the board.

    Thanks for your help. I'll be coming over and purchasing advanced support for your trouble right away.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags