1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Put grid layout on archive, category and search pages in WP

Discussion in 'BlackHat Lounge' started by kawamaster, May 21, 2010.

  1. kawamaster

    kawamaster Registered Member

    Oct 3, 2009
    Likes Received:
    Hi there,

    I figured out a solution to a problem i had with wordpress that might be worth sharing here.

    I create affiliate sites in wordpress that i fill with datafeeds from merchants. I use the yestilo theme to show the posts on the frontpage in a grid layout but wasn't able to get the same on search results and on category pages.

    Been looking for a while but the solution is quite simple.

    FTP to your site and open the copy the content of index.php (from your active theme folder) into archive.php and search.php and voila! You get the same grid layout as on the frontpage. (wouldn't hurt to save them first, just in case)

    Hope this helps others. Use the thanks button if this was handy for you.