Tagged: blog layout, Tags
I found this article in the support on how to change the archive page layout to “blog-grid”. Here is the link to the article:
https://kriesi.at/support/topic/archive-page-layout-changes/
I added the code from the article:
add_filter('avf_blog_style','avia_change_tag_blog_layout', 10, 2);
function avia_change_tag_blog_layout($layout, $context){
if($context == 'tag') $layout = 'blog-grid';
return $layout;}
But need to change the $layout to ‘single-small’. So I created this filter:
add_filter('avf_blog_style','avia_change_tag_blog_layout', 10, 2);
function avia_change_tag_blog_layout($layout, $context){
if($context == 'tag') $layout = 'single-small';
return $layout;
}
But it still shows the entire article. I want the content to be excerpt – read more only. Can someone assist with the needed code. I think I have it 90% there.
Hi reggiescott!
Please take a look here:
https://kriesi.at/support/topic/display-only-excerpt-on-archive-page/#post-364919
and let us know if that helps out!
Best regards,
Basilis
That was incredible. Worked like a charm. Do you think you could assist me with this other item, along the same topic:
https://kriesi.at/support/topic/permalinks-showing-up-at-end-of-tags-page/
Hi!
Great! Glad we could help!
Replied you here – https://kriesi.at/support/topic/permalinks-showing-up-at-end-of-tags-page/#post-528911 so closing this one for now :)
Cheers!
Yigit