Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #891458

    Hello!

    Is there a way to change the way blog categories are displayed? Currently, when you choose a category (which I’ve put in a sub menu under the featured post) your directed to a page with full length posts one after another – it’s a hugely long scroll in some categories. Instead of that, I’d love to see those category results in a grid or like the search results appear.

    thanks!

    #892204

    Hey taylorchiu,

    Here is a thread for you to consider
    https://kriesi.at/support/topic/category-archive-page-change-layout-to-show-excerpt/#post-459206

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #893023

    Hi there – That snippet didn’t work for me.
    This is the coded I added to the functions.php file:

    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;
    }

    And I got this error message:
    Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

    #893048

    Hi,
    I tested the code from the post:

    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;
    }

    on a clean install and it is working, perhaps in your copy/paste your quotes turned into curry quotes?
    Try changing with FTP.

    Best regards,
    Mike

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