-
AuthorPosts
-
May 15, 2014 at 10:22 am #265210
Hi support,
I would like my archive pages (such as: http://52kards.com/category/uncategorized/) to have the posts arranged in the same way they appear in my blog layout (http://52kards.com/blog/). I can’t seem to find any settings for how the archive layout can be changed. Can you please point me in the right direction.
Thanks!
AsadMay 15, 2014 at 9:01 pm #265492Hey AsadIC!
Please see Peter’s post here – https://kriesi.at/support/topic/how-to-get-a-different-layout-for-the-blog-page-without-breaking-breadcrumbs/#post-256745
Regards,
YigitMay 16, 2014 at 3:42 am #265673Hi support,
I was successfully able to change the archive layout to a grid format using his code:
add_filter(‘avf_blog_style’,’avia_change_archive_blog_layout’, 10, 2);
function avia_change_archive_blog_layout($layout, $context){
if($context == ‘archive’) $layout = ‘blog-grid’;
return $layout;
}However, if I replace ‘blog-grid’ with ‘single-small’ as he suggests, it does not create the proper layout (see here:http://52kards.com/category/uncategorized/)
Thanks
AsadMay 19, 2014 at 4:52 pm #266835May 30, 2014 at 11:19 am #272332I tried ‘single-big’ and that also didn’t work.
Thanks
AsadJune 2, 2014 at 8:04 am #273109Hi!
On the blog page http://52kards.com/blog/ you’re using a different layout (single small layout) – try:
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-small'; return $layout; }
Cheers!
PeterJune 2, 2014 at 8:13 pm #273482Hi Peter,
I added that code to my functions.php, but it resulted in my website loading a blank page. I noticed in my browsers incognito mode the homepage still loaded up, but the blog page is always blank.
Asad
June 3, 2014 at 2:12 am #273673Hey!
Thank you for the update.
The snippet should change the archive pages’ blog layout to Single Author, small preview style. It works fine on our end. Please post the login details here and set it as a private reply. We would like to see the functions.php file.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.