In the past I wrote about setting up Masonry in Genesis where I provided the code to display blog posts in Masonry Grid on the Posts page (home.php). In this article I share the code for setting up the same as a Page Template that can be applied to any static Page. Additionally just like the Blog Template that ships with Genesis, you will be able to include/exclude categories and set the number of Posts via Genesis Theme Settings. Let's dive in!
Masonry Initialization fileCreate a file named masonry-init.js in child theme's js (create if not existing) directory having the following code:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.