Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #264760

    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

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