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
- The topic ‘how to make archive template different than blog one’ is closed to new replies.