Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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!

    #595351

    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

    #595546

    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!!

    #595552

    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! :)

    #596147

    Hi,

    Please try the code at the very bottom of the file, before the ending php tag (if there is one):

    ?>
    

    Thanks,
    Rikard

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.