Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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!
    Asad

    #265492
    #265673

    Hi 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
    Asad

    #266835

    Hi!

    Have you tried using ‘single-big’ instead? If not, please do so

    Cheers!
    Yigit

    #272332

    I tried ‘single-big’ and that also didn’t work.

    Thanks
    Asad

    #273109

    Hi!

    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!
    Peter

    #273482

    Hi 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

    #273673

    Hey!

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.