[resolved] Archive template modification - use accordion in archives same as on hompepage (3 posts)

  1. mijk
    Posted 6 years ago #

    When building a site using WordPress and Minimalist theme from WP.org theme directory, I needed to list posts when using archive.php template (category, tag and archive post listings) the same way as when on homepage (in a pretty nice accordion).

    It was pretty simple so I am sharing my solution:

    • edit archive.php, and remove tag class="contentheader" from lines:

      • 11
      • 13
      • 15
      • 17
      • 19
      • 21
      • and23
    • save archive.php and replace the file in Minimalist theme directory on your website ftp
    • all your archive / tag / category listings becomes accordion instantly :)

    I hope that someone will find this usefull.

  2. xxaxxaxxa
    Posted 6 years ago #

    Thank you very much.
    I have this problem too.

  3. heyman
    Posted 5 years ago #

    Thanks! That is very usefull.

    I was searching for that, thanks you for sharing!

    Check my variation here:

Topic Closed

This topic has been closed to new replies.

About this Topic