Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1491301

    Hallo,

    wenn ich meinen Blog aufrufe (https://www.aw-impulse.de/blog/), werden die einzelnen Beiträge schön nebeneinander aufgeführt. Wenn ich aber eine Kategorie aufrufe, ist die Anzeige der Beiträge untereinander (z.B. hier: https://www.aw-impulse.de/category/business/). Wie kann ich das so einstellen, dass auch hier die Anzeige so ist, wie in der Blog-Anzeige?

    Außerdem wird teilweise der Textauszug angezeigt, und beim unteren Beitrag nicht, obwohl ich auch hier einen Textauszug eingegeben habe: https://www.aw-impulse.de/category/business/

    Danke für Support,
    Andreas

    #1491315

    Hey AndreasWinkler,

    Thank you for the inquiry.

    You can add this code to the functions.php file to apply the same grid layout to the category pages:

    add_filter('avf_blog_style','avf_blog_style_mod', 10, 2); 
    function avf_blog_style_mod($layout, $context){
       if($context == 'archive') $layout = 'blog-grid';
       return $layout;
    }

    Best regards,
    Ismael

    #1491363

    Hi Ismael,

    when I put the code into functions.php, isn’t it deleted when there is an update of Enfold?
    If yes, do I need to make a child theme, or is it possible to add the code into Customizer – additional CSS?

    Best regards,
    Andreas

    #1491383

    Hi,

    Thank you for the update.

    You can add the code using plugins like Code Snippets so it will not get removed after a theme update, or activate a child theme.

    https://kriesi.at/documentation/enfold/child-theme/

    Best regards,
    Ismael

    #1491416

    Thanks, I tried with Code Snippets, and it works. Is the code also working for tags? And I am missing the sidebar when I click on categories. Can I maintain it manually? If not please give me an updated code where also the sidebar is visible by clicking categories or tags.

    #1491436

    Hi,

    Thank you for following up.

    Yes, the code should also activate the grid layout for the tag pages. If you need to activate the sidebar, try including this filter.

    function avf_avia_layout_filter_mod( $layout, $post_id ) {
    
        if ( is_singular('post') || is_category() || is_tag() ) {
            $layout['current'] = $layout['sidebar_right'];
            $layout['current']['main'] = 'sidebar_right';
        }
    
        return $layout;
    }
    add_filter('avia_layout_filter', 'avf_avia_layout_filter_mod', 10, 2);
    

    You will have to edit the sidebar widgets in the Appearance > Widgets panel.

    Best regards,
    Ismael

    #1491569

    It works, thanks Ismael. You can close the ticket. :-)

    #1491589

    Hi,

    Great, I’m glad that Ismael could help you out. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Anzeige von Beiträge auf Kategorien’ is closed to new replies.