Tagged: category, category page, layout
Hi Team!
I was hoping you can tell me why in your demo, in category pages your Title/Meta and Description is below the Image, but in my version the Title and meta are above the Image and the Description is beneath?
I want my category pages to look like the demo. However if I create custom pages to create my own category blog style it doesn’t help me when someone clicks the category link as it is redirected to the category not the page and defeats the purpose.
How to make category pages look like the demo category pages?
Hello??
Never mind, the answer is:
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-big’;
return $layout;
}
add_filter( ‘post-format-standard’, ‘avia_category_content_filter’, 15, 1);
function avia_category_content_filter($current_post)
{
if(!is_single())
{
$current_post[‘content’] = get_the_excerpt();
$current_post[‘content’] .= ‘<div class=”read-more-link”>‘.__(‘Read more’,’avia_framework’).'<span class=”more-link-arrow”> →</span></div>’;
}
return $current_post;
}