[resolved] How do I make my posts show horizontally at the homepage? (4 posts)

  1. loicee
    Posted 3 years ago #


    I'm using Xampp and in the functions.php, I placed in


    at the end.

    I've made my featured images appear, but they seem to be stacking atop each other vertically. I have no idea how to place them in horizontally. Can you guys tell me which part in the CSS or index.php do I have to change? I have three types of post codes in the CSS.

    1.) .post {}

    2.) #postdisplay{
    float: left;
    width: 250px;
    height: 250px;
    margin: 5px;}

    3.) #meta { }
    .postmetadata { }

    WordPress Version: 3.4.2

  2. Michael
    Forum Moderator
    Posted 3 years ago #

    post-thumbnails insert an image tag with the css class .wp-post-image

    try styling that with either 'float:left;' or possibly 'display:inline;' (untested; without seeing your site live)


    will also depend on the html structure of the loop or your total template.

  3. loicee
    Posted 3 years ago #

    I'm sort of confused as to where I'm going to put that. Do I put that in the CSS file or functions.php as it is? Would it go like this?

    add_theme_support('post-thumbnails')/img.wp-post-image ? I'm sorry :( I'm just completely clueless right now.

  4. loicee
    Posted 3 years ago #

    OH MY GOD THANK YOU IT WORKED :"> Sorry for the follow-up T.T

Topic Closed

This topic has been closed to new replies.

About this Topic