WordPress.org

Support

Support » Themes and Templates » [Resolved] How to add one more column in grid style ?

[Resolved] How to add one more column in grid style ?

  • themesbag.com” currentyly under construction is my themes blog and this is the theme i am using for it.
    I was just curious to know if i can add one more column to it, i tried doing it myself but i can’t figure it out.
    So any help would be appreciated.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Michael

    @alchymyth

    Forum Moderator

    every second post seems to get .first-in-row css class;

    you need to find and change that code; in the loop of the front page template (index.php).

    in index.php, this section generates this extra css class for post_class():

    if($first) $class = "first-in-row";
    		else $class="";
    		$first = !$first;

    change it to:

    $class = ($wp_query->current_post%3 == 0) ? "first-in-row" : "";

    (untested)

    woohooo……(screenshot)
    Thank you very much sir…you are wonderful!
    [if there is anything i can do please let me know]

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    Good work Mayur6578 and Alchymyth.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] How to add one more column in grid style ?’ is closed to new replies.