Uneven grid layout on search-results page

Home Forums Gillion Theme Uneven grid layout on search-results page

Home Forums Gillion Theme Uneven grid layout on search-results page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    RESOLVED Posts
  • Tré
    Participant

    I’m using the grid layout for my blog, which lines up each row of posts perfectly — even if the row above it has a post with a title long enough (like two rows of text instead of one) that it pushes its overall length to be a bit longer than the rest of the row. But, for posts on a search page, they’re arranged in a grid that gets more and more uneven when the post titles get long. With this row reset happening for one grid but not the other, it seems like a bug and not an intentional design choice. Is there a way to fix or work around this?

     

    Here’s an example on the Gillion demo site, where two of the posts on the left have long titles that knock the grid more and askew: https://gillion.shufflehound.com/page/2/?s=non

    Solution for this topic

    Hi @Tré,

     

    I hope you are well today and thank you for your question.

     

    This is happening because the search results page displays in masonry format.

     

    You can display it in grid format adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    .search-results .blog-style-masonry article {
        position: static !important;
    }
    
    .search-results .blog-style-masonry article:nth-child(2n+1) {
        clear:both;
    }

     

    Best regards,
    Shufflehound team

    Tré
    Participant

    Awesome, thanks!

    You are most welcome here 🙂

Viewing 4 posts - 1 through 4 (of 4 total)