Number of posts column, but not on home page

Hi,

My home page is a static one, and all my posts are publish in a page named “pensées”.

How could i make this page display the 2 last posts in one column, and the others in 2 column ?

The only things i have found is for post in home page.

Regards,

Jech

Hi Jech,

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

Could you please share me the pensées page URL from your site where it’s displaying so that i can help you to achieve it?

Do you mean latest posts by last posts?

Best Regards,
Movin

Hi Movin,

This is the link : http://www.reflexologie-plantaire-bordeaux.com/mes-pensees/

Yes, i mean latest posts by last posts.

Regards,

Jech

Hi Movin,

Do you see private reply, because i don’t want to share this link in public.

Jech

Yes i saw your private reply.

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

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


/* Masonary style */
@media (min-width: 768px) {
    .article-container{
        overflow: hidden;
    }
    .blog article.post {
        width: 50%;
        margin: 0;
        padding-right: 10px;
        display: inline-block;
        float: left;
    }
    .blog article.post .read-more, .blog article.post .entry-footer{
        display: none;
    }
    .blog article.post .post-inner-content{
        border: 0;
        padding: 0 0 30px;
    }
    .blog .page-1 article.post:first-child, .blog .page-1 article.post:nth-child(2) {
        width: 100%;
        padding: 0!important;
    }
    .blog .page-1 article.post:first-child .post-inner-content, .blog .page-1 article.post:nth-child(2) .post-inner-content{
        border-bottom: 1px solid #dedede;
    }
    .blog .page-1 article.post:first-child .post-inner-content{
        padding: 0 0 50px;
    }
    .blog .page-1 article.post:nth-child(2) .post-inner-content{
        padding: 50px 0;
        margin-bottom: 30px;
    }
    .blog .page-1 article.post:first-child .read-more, .blog .page-1 article.post:nth-child(2) .read-more,
    .blog .page-1 article.post:first-child .entry-footer, .blog .page-1 article.post:nth-child(2) .entry-footer{
        display: block;
    }
    .blog article.post:nth-child(odd){
        clear: left;
        padding-right: 25px;
    }
    .blog article.post:nth-child(even){
        padding-left: 25px;
        padding-right: 0;
    }
}


Hi,

It’s ok. Thank you !

Jech

You are most welcome here :slight_smile: