Hi!
In another thread:
https://kriesi.at/support/topic/bug-elegant-blog-layout-category-pages-show-no-featured-image/
It say’s to add the following to the functions.php file if i want to have the featured image displayed on category archive/tag pages, since I am using the “Use the Advance Editor to build Blog Layout” function. Easy enough! I just don’t want to screw anything up…can you tell me EXACTLY where to add this within the functions.php file one I open it in the editor?
add_filter(‘avf_blog_style’,’avia_change_category_blog_layout’, 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == ‘archive’) $layout = multi-big’;
if($context == ‘tag’) $layout = ‘multi-big’;
return $layout;
}
Thank you!
Hi juliacecere!
You have to add it to the functions.php file.
I have pasted you the proper code
add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2);
function avia_change_category_blog_layout($layout, $context){
if($context == 'archive') $layout = 'multi-big';
if($context == 'tag') $layout = 'multi-big';
return $layout;
}
let us know if it does not work.
Cheers!
Basilis
Hi there!
Thanks for the reply!
Okay so, when I open the functions.php file…WHERE do I copy and paste this code exactly? Anywhere??
Thank you!!
Oh!
And one more thing, I am using Mapify Pro and I’d also like the location tag pages to also display the exact same way as the blog page, archive page, and tag page. Would I add a third line:
if($context == ‘location tag’) $layout = ‘multi-big’;
Could you find out if “location tag” is the right wording? I have no clue how to find this stuff…beginner level here! :)