-
AuthorPosts
-
March 9, 2016 at 7:12 am #595338
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!
-
This topic was modified 9 years, 7 months ago by
juliacecere.
March 9, 2016 at 7:43 am #595351Hi juliacecere!
You have to add it to the functions.php file.
I have pasted you the proper codeadd_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!
BasilisMarch 9, 2016 at 1:37 pm #595546Hi 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!!
March 9, 2016 at 1:46 pm #595552Oh!
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! :)
March 10, 2016 at 8:50 am #596147 -
This topic was modified 9 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
