- This topic has 9 replies, 2 voices, and was last updated 3 years, 1 month ago by Tom.
October 16, 2017 at 9:00 am #404243Charles
I would like to create a masonry layout for the home page of my site using read more from various page content. Before I start, I thought it best to ask for your recommendation, so I do it in the most compatible way for GeneratePress. I see you have built in configuration for a blog masonry layout but this content is already in pages.
Do you recommend masonry.js or another method?
CharlesGP Premium 1.4.3October 16, 2017 at 7:11 pm #404538TomLead DeveloperLead Developer
Masonry.js is definitely the way to go. It’s packaged with WordPress too, so you just have the enqueue it.
Our Blog add-on has a masonry option as well which uses masonry.js.
Let me know if you need more info 🙂October 17, 2017 at 12:48 pm #405152Charles
If I enable the blog columns will that enqueue masonry, or should I add the enqueue code to my child theme’s function.php file?
If I do use the blog enqueue how can I enable it in pages?
CharlesOctober 17, 2017 at 7:15 pm #405323TomLead DeveloperLead Developer
Enabling the blog columns will enqueue it for you.
Enable the GP blog masonry options on pages? What would the masonry items show?October 23, 2017 at 8:39 am #408544Charles
It’s just for the home page. I want it to hold excerpts of the different sections on the site – but the excerpts are from pages, not posts. Currently the site is setup like that. This is what the site looks like now. http://southeglinton.ca/
This is what the redesign looks like:
CharlesOctober 24, 2017 at 11:07 pm #409619TomLead DeveloperLead Developer
The boxes themselves look pretty similar to that redesign?
Either way, it would likely need a custom masonry setup, as the elements aren’t from GP, which the built in masonry depends on.October 25, 2017 at 10:00 am #410075Charles
Yes, the boxes look close to what I want – it’s too bad you only have this feature for posts and not pages. Maybe you could add that as a new setting in Premium in the future.
I presume there’s no way I can repurpose your code for this for pages.
CharlesOctober 25, 2017 at 6:58 pm #410367TomLead DeveloperLead Developer
The GP code simply works off of jQuery masonry and sets the container and elements.
You would do the same for your container/elements.October 26, 2017 at 7:57 am #410664Charles
Will do. Thanks Tom!
CharlesOctober 26, 2017 at 11:00 am #410828
- You must be logged in to reply to this topic.