Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #740907

    Hi

    I’ve created an enfold google map that has 70+ pins but on front end the map pin animation takes a long time to place all pins.
    It is quite distracting
    Can I disable the animation or is there another solution?

    Brian

    #742438

    Hey briandeeney,

    Please go to enfold/js/shortcodes.js and find following line

    
    },200 * (parseInt(key,10) + 1));
    

    and change it to

    
    },50 * (parseInt(key,10) + 1));
    

    We would recommend you to use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and then copy unmodified file to your child theme inside /js/ folder and then add following code to functions.php file of your child theme

    function wp_change_shortcodesjs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_shortcodesjs', 100 );

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.