Tagged: archive pages
Hi,
I’m building a blog using the theme and have an issue with the design of the Archive pages.
I created a page using the Layout builder and inserted a “Blog Posts” component. I set the blog style to Single Author big preview pic and Blog content length to Excerpt with read more link.
This page is selected as my front page in my Enfold Child Theme settings.
It defines the style of my main blog page but I can’t change the design style of the Archive pages (categories, months…). Archive pages look like full post text with big preview.
I did play around trying to change this in PHP. I took the archive.php and copied it to my child theme and changed the get_template_part( ‘loop’, ‘index’ ) removing includes so it takes the loop-index.php from my current child theme folder.
Next I changed in loop-index.php (child theme folder) line 34 get_the_content(__(‘Read more’,’avia_framework’) to get_the_excerpt(__(‘Read more’,’avia_framework’)
With this I get only Excerpt on Archive pages but without the prefiew image.
Any easier way without PHP? If not, what would be the recommended change in PHP to get the same result as on main blog front page?
Thanks
Hey TheBlog!
Please see Peter’s post here – https://kriesi.at/support/topic/how-to-get-a-different-layout-for-the-blog-page-without-breaking-breadcrumbs/#post-256745
Regards,
Yigit