Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1240186

    dear fabulous theme support
    I found out that this template: “template-archives.php” produces this archive page when I choose “archive” while creating a new ARCHIVE page. Please see attached page in private content.
    My first question:
    is it possible to show the featured image on listing of:
    blog post and pages?
    as you can already see on portfolio

    Second question:
    can I create a grid lay-out for the pages listing – similiar to portfolio view on that archive page?
    thanks in advance for best theme support I know
    Stanko

    • This topic was modified 4 years, 4 months ago by KulturDesign.
    #1240434

    Hey Stanko,

    Here is the code you can put in your funtions.php

    
    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
        if($context == 'archive') $layout = 'single-big';
            return $layout;
    }
    

    https://kriesi.at/support/topic/category-archive-page-change-layout-to-show-excerpt/#post-459206
    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1240609

    Dear Victoria
    thanks for your fast reply.
    I´ve inserted this snippet in my child theme functions but with no effect on my page lay-out :-(
    Any other suggestions?

    #1241580

    Hi,

    You can use the get_the_post_thumbnail function above line 73 of the template-archives.php file to display the featured image above the post title or link.

    echo "<li><a href='".get_permalink()."' rel='bookmark' title='". __('Permanent Link:','avia_framework')." ".the_title_attribute('echo=0')."'>".get_the_title()."</a></li>";
    

    // https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/

    Best regards,
    Ismael

    #1241809

    dear Ismael
    thank you – but the function you posted is already implemented in the template-archive ????
    best regards
    Stanko

    #1242381

    Hi Stanko,

    The code Ismael posted gets the title, but he said that you could add the code he linked to above the title for example to get the featured image. You could try something like this for example:

    echo get_the_post_thumbnail();

    Best regards,
    Rikard

    #1245325

    thank you for this solution – we can close this topic

    #1245402

    Hi KulturDesign,

    Great :)

    We are closing the thread.

    If you need further assistance please let us know in a new one.

    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘ARCHIVE – template-archives.php’ is closed to new replies.