Advertisement
shakil97bd

Enable masonry form wordpress

Sep 22nd, 2014
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. add_action( 'wp_enqueue_scripts', 'jk_masonry' );
  2. function jk_masonry() {
  3.   wp_enqueue_script( 'jquery-masonry', array( 'jquery' ) );
  4. }
  5.  
  6. /*
  7. How to use?
  8.  
  9. $('#container').masonry({ singleMode: true });
  10.  
  11. or
  12.  
  13. $('#container').masonry({ columnWidth: 200 });
  14.  
  15. Get masonry resources form here: http://masonry.desandro.com/
  16.  
  17. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement