Home Page with 2 posts in a row

Hi guys,

I’m trying to set up the home page to show two posts instead of one. I’ve changed the bootstrap class so that each post take just 4col, but the second post is still under the first one, and the sidebar stretch the page left.

I can’t like the website 'cos I’m working on local.

Hope you can help me…

Thanks!
Marco

Hi Marco,

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

You can try achieving this by adding the following CSS code in the Custom CSS option of the latest version of Sparkling theme on the below path.

Admin Area -> Appearance -> Customize -> Sparkling Options -> Other -> Custom CSS


body.blog #main article {
    width: 48%;
    float: left;
}

body.blog #main article:nth-child(2n+2) {
  margin-left: 5px;
  clear: none !important;
}

body.blog #main article:nth-child(3n),
body.blog #main article:nth-child(3n+2) {
 clear: both;
}

Best Regards,
Movin