WordPress.org

Forums

Responsive
Display articles in a Row (2 posts)

  1. Cleese
    Member
    Posted 9 months ago #

    What i want to do is:
    If i call a Category over the menu, i want that the Posts/Articles of this Category are Displayed three in a Row. The next three in the next row and so on.
    I want to use the Grid with the “div classes”
    <div class="grid col-300"> <div class="grid col-300"> <div class="grid col-300 fit">
    but i have no idea how to build a template under the Theme “responsive” with this feature.
    can you help me?

  2. Herbert van-Vliet
    Member
    Posted 9 months ago #

    You'll probably find this of interest:
    http://codex.wordpress.org/Category_Templates

    When you do create your category specific template, it would be wise to so in a child theme:
    http://codex.wordpress.org/Child_Themes

    You could base your category-specific template on one of the existing files for example.
    In your loop you'll want to output the 'fit' class for every 3rd post (check php's modulo % operator).

Reply

You must log in to post.

About this Theme

About this Topic