• Resolved mayur6578

    (@mayur6578)


    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)
  • 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)

    Thread Starter mayur6578

    (@mayur6578)

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

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Good work Mayur6578 and Alchymyth.

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