-
AuthorPosts
-
October 8, 2016 at 10:03 pm #696934
All posted solutions were somewhat incomplete. It is easy to style the Blog Page and most probably use the Avia Builder. No luck with all the other pages though. Below find the code that styles these pages – but not the blog itself – automatically to Single Big Blog style. Add this to your child theme functions.php
// Fix Category / Tag / Author / Archive Layout to adopt Single Big blog style - START add_filter('avf_blog_style','avia_change_archive_blog_layout', 10, 2); function avia_change_archive_blog_layout($layout, $context){ if($context == 'archive') $layout = 'single-big'; return $layout; } add_filter( 'post-format-standard', 'avia_category_content_filter', 15, 1); function avia_category_content_filter($current_post) { if(((is_archive()) || (is_author()) || (is_category()) || (is_tag()))) { $current_post['content'] = get_the_excerpt(); $current_post['content'] .= '<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div>'; } return $current_post; } // Fix Category / Tag / Author / Archive Layout to adopt Single Big blog style - END
October 9, 2016 at 2:19 am #696952October 11, 2016 at 3:21 pm #697913Hey aerobis,
@aerobis thank you for your solution. I’ve been looking for that But can these pages also be displayed in Masonry style?
In the solution of this threadthe blog page is also changed and all Masonry elements on other pages are no longer displayed.
Thank you in advance for a reply
MargitOctober 11, 2016 at 3:34 pm #697921Hey Margit,
not without more intense modifications. We use the masonry styles only on the actual blog. I just wanted to the other pages to look “decent”.
The code posted in your linked thread doesn´t work … at least not for us.Good luck ;-)
ElOctober 11, 2016 at 3:52 pm #697930Hallo @aerobis,
now I found my solution in the Theme Documentation http://kriesi.at/documentation/enfold/change-archive-categorytag-blog-style/ :
add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); function avia_change_category_blog_layout($layout, $context){ if($context == 'archive') $layout = 'blog-grid'; return $layout; }
Available layout are single-small, single-big, blog-grid and multi-big.
Well, the blog page remains custom.
October 11, 2016 at 3:57 pm #697935October 11, 2016 at 4:29 pm #697957@margitw – well yes that is of course possible. I thought you were talking about the masonry style in the archive pages. The grid is somewhat similar but lacks the styling and the ajax loading button of masonry. Glad you are happy with it though ;)
October 13, 2016 at 8:52 am #698615 -
AuthorPosts
- You must be logged in to reply to this topic.