Tagged: masonry
-
AuthorPosts
-
June 2, 2016 at 6:29 am #641853
I’ve already found a number of threads talking about whether or not this is possible (for example, https://kriesi.at/support/topic/how-to-display-all-my-categories-on-masonry/) and they generally end with saying that its too advanced a topic for the forums and suggesting hiring a freelance developer. That’s understandable.
After looking into the theme files, though, I have a question. It seems like this can’t be done just using actions and filters and would have to be done by significantly copying loop-index.php into a child theme and rewriting it. Is that safe to say? If not, can you give me a nudge in the right direction?
Thanks!
June 3, 2016 at 3:09 pm #642573Hey Kevin,
That’s correct. In your child theme you’d need to have a structure similar to:
tag.php archive.php
Then change this part (in each one):
$blog = new avia_post_slider($atts); $blog->query_entries(); $output .= $blog->html();
To:
$blog = new avia_masonry($atts); $blog->extract_terms(); $blog->query_entries(); $output .= $blog->html();
(Make sure you set Blog Grid layout in the Theme Options).
Best regards,
JosueOctober 7, 2016 at 5:06 am #696257hello, i used this codes on my archive.php and the layout turned to masonry. but it displays all the post. how can i filter it based on the specific category? thanks.
October 9, 2016 at 6:11 am #696970Hey!
Please use the “avia_masonry_entries_query” filter.
Related threads:
// https://kriesi.at/support/topic/how-to-change-category-tag-archive-etc-pages-to-look-like-avia-masonry-grid/#post-661134
// https://kriesi.at/support/topic/masonry-element-is-not-working/#post-668823
// https://kriesi.at/support/topic/masonry-for-pages-2/#post-672210Cheers!
IsmaelMay 16, 2017 at 1:35 pm #793916Thanks Ismael, it works like a charm :)
May 16, 2017 at 7:43 pm #794368Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
Andy -
AuthorPosts
- The topic ‘Using masonry layout on category and tag archives’ is closed to new replies.