Support » Theme: Social Magazine » Posts with same height

  • Resolved Mujtim

    (@mujtim)


    Hello,

    I have two columns of posts on homepage.

    All post have own height.

    How can I set same height for all posts?

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Mujtim !
    Can you please provide the website url ? This will make things easier and faster 🙂

    Cheers !

    Ok in your style.css and exactly line 134 you will find the following

    .blog-block {
        display: inline-block;
        padding: 0.25rem;
        width: 100%;
    }

    add height:400px; which means the previous code becomes :

    .blog-block {
        display: inline-block;
        padding: 0.25rem;
        width: 100%;
        height:400px;
    }

    I chose the value 400 to suit all your posts, at 350 px some posts become a bit too close to the borders but at 400 it seemed good to me.ofc you can play around with that value 🙂

    Thank you very much. It works :).

    I have one more question about this theme. Harder :).

    Posts in two columns are ordered from newest to oldest.

    But order is vertically. Do you think that I can change to horizontally without big changes?

    Example:
    Current order:
    1 5
    2 6
    3 7
    4 8

    What I want:
    1 2
    3 4
    5 6
    7 8

    hmm… yes It’s possible but this can be done from the backend and modification will be in home.php file ( if we suppose these are normal posts not custom post types ). I won’t go deep into explaining this because it will only confuse you if you don’t know PHP. Unless you insist that’s another story 🙂

    I have one more website where I modified all theme from the backend.

    So maybe.. Can you tell me wich part is about order and I will try alone 🙂

    I can’t simply guess which part, the only thing I know is it’s inside the loop 🙂 maybe by pasting the code somewhere I ll be able to be more precise

    Thank you 🙂

    First think is resolved and second I will try.

    Mark as resolved 😉

    you are welcome 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Posts with same height’ is closed to new replies.