• Resolved Travis

    (@tjtaylor)


    Very strange thing happening to my website > https://webdesignyorkpa.com/testimonials/

    Whenever we update to WordPress 3.9 from 3.8.3 the gutterWidth property of masonry stops working. What’s weird is that we are calling both jquery and masonry locally, so neither file has changed.

    This is a custom built theme from the ground up.

    I’m puzzled on this one!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Travis

    (@tjtaylor)

    wp_deregister_script( ‘masonry’ ); did the job

    Travis, I’m having the same issue. Would you please elaborate your solution? thank you!

    Thread Starter Travis

    (@tjtaylor)

    Hi quitavares,

    I used that function to deregister the default ‘masonry’ script that I guess was implemented in 3.9. Here is what my code looks like in functions.php:

    function scripts_basic()
    	{
    		wp_deregister_script( 'masonry' );
    		wp_register_script( 'masonry', get_template_directory_uri() . '/js/jquery.masonry.min.js', array( 'jquery' ), null, true );
    		wp_enqueue_script( 'masonry' );
    
    	}
    add_action( 'wp_enqueue_scripts', 'scripts_basic' );

    I just used this and it worked perfectly, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Weird… masonry gutterWidth stops working on 3.9 update’ is closed to new replies.