-
AuthorPosts
-
November 13, 2025 at 5:01 pm #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,
AndreasNovember 14, 2025 at 5:11 am #1491315Hey 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,
IsmaelNovember 15, 2025 at 4:45 pm #1491363Hi 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,
AndreasNovember 17, 2025 at 5:34 am #1491383Hi,
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,
IsmaelNovember 17, 2025 at 4:59 pm #1491416Thanks, 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.
November 18, 2025 at 6:19 am #1491436Hi,
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,
IsmaelNovember 20, 2025 at 10:39 am #1491569It works, thanks Ismael. You can close the ticket. :-)
November 20, 2025 at 4:48 pm #1491589Hi,
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 -
AuthorPosts
- The topic ‘Anzeige von Beiträge auf Kategorien’ is closed to new replies.
