-
AuthorPosts
-
October 23, 2013 at 4:09 am #179424
Hi there,
I’ve just purchased Enfold and am slowly working out the features. I’m really keen to use the masonry display to show a grid of recent posts of particular categories on certain pages.I tried adding the ‘fullwidth masonry’ item to a page and selected the appropriate category. The posts, however, are displayed one after the other down the page and the featured image of each post is shown at full-size tiled across the page. I can’t work out why it’s doing this and I’ve tried all the different tiling options.
Should the featured image of each post be shown in the tile?
Thanks
October 23, 2013 at 6:25 am #179484Also, is it possible to have the masonry displayed only in the body and still have a sidebar?
October 23, 2013 at 1:25 pm #179652Solved the first one – just needed to regenerate thumbnails :)
Still keen to know if it can be used in body and still have a sidebar.
And one more question…how could I sort posts by order (recent first) on one page and alphabetical on another?
Thanks!
October 23, 2013 at 5:08 pm #179793Hey,
Please switch your theme to debug mode. Edit function.php, find this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
//set builder mode to debug add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; }
You will be able to see the actual shortcode below the builder. First, create a page and go to Advance Layout Builder. Add the Fullwidth Masonry element then configure the options. Since we switch the Advance Layout Editor to debug mode, you will see the actual shortcode of the masonry gallery below. It looks something like this:
[av_masonry_gallery ids='' items='24' paginate='pagination' size='flex' gap='large' overlay_fx='active' caption_elements='title excerpt' caption_display='always' container_links='active' id='']
Copy the code then switch to Default Editor. Make sure that you place the shortcode on the Visual Editor. Save the page. You will have a sidebar with the masonry gallery.
Regards,
IsmaelOctober 23, 2013 at 9:24 pm #179949Thanks very much, that worked perfectly!
Further to my second question regarding different sorting of masonry entries on different pages, I had a go at modifying masonry_entries.php, and managed to change the orderby for all masonry pages. I figure I need to add a conditional statement with page id, similar to what is done here , but I’m not sure of the exact syntax and where to place it…I’m very new to php!
Cheers,
Chris -
AuthorPosts
- The topic ‘Masonry display of posts’ is closed to new replies.