Support » Theme: Astra » how to make archive template different than blog one

  • Hi Astra Dev Team,

    Thank you very much for the best theme for wordpress ever 🙂

    I have a question:
    how to change archive template without affecting the front page: I have homepage with the default template (one column, thumbnail at the top and title and description at the bottom for every entry). I want to change the template for archives to : one column, but thumbnail at left and title and description at right for every post.

    I created a new blog-layot.php inside my child-theme \wp-content\themes\mychild-theme\template-parts\blog\blog-layout.php

    and added

    if( is_home() ){
    ...default markup 
    } else if ( is_archive() ) {
    ...my markup for archives...
    }

    But this did not work! wordpress hangs!

    The markup I will do it myself. Is there a hook to achieve this ? Any help please ?

    Thank you in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter charafweb

    (@charafweb)

    Any help ? Please !

    Hi @charafweb,

    Would you mind to share the blog-layout.php you created? Or you might consider reaching out to us through our Support Portal for faster resolution and more personal response.

    If you decide to reach out to us through our Support Portal, please also mentioned about this topic when you create a ticket, so we can monitor them both.
    
    Kind regards,
    Herman 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to make archive template different than blog one’ is closed to new replies.