Skip to content

Instantly share code, notes, and snippets.

@raselahmed7
Last active August 29, 2015 14:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save raselahmed7/731e698827e451c217bd to your computer and use it in GitHub Desktop.
Save raselahmed7/731e698827e451c217bd to your computer and use it in GitHub Desktop.
Enable masonry form wordpress
add_action( 'wp_enqueue_scripts', 'jk_masonry' );
function jk_masonry() {
wp_enqueue_script( 'jquery-masonry', array( 'jquery' ) );
}
/*
How to use?
$('#container').masonry({ singleMode: true });
or
$('#container').masonry({ columnWidth: 200 });
Get masonry resources form here: http://masonry.desandro.com/
*/
@ThemeMetric
Copy link

awesome

@shakil97bd
Copy link

Thanks bai

@mizanulhasan
Copy link

(y)

@inf-reiaz14
Copy link

(y)

@Rubel-hossain
Copy link

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment