WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. loicee
    Member
    Posted 1 year ago #

    Details:

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

    add_theme_support('post-thumbnails')

    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. alchymyth
    The Sweeper & Moderator
    Posted 1 year 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)

    http://codex.wordpress.org/Post_Thumbnails
    http://codex.wordpress.org/Post_Thumbnails#Styling_Post_Thumbnails

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

  3. loicee
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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