Landing Page – Latest post with different style

  • Author
    Posts
  • #52175

    Hi, I’m adapting your wonderful Fluida theme and I have found an obstacle:

    I want my landing page to show the latest post in a more prominent way, and the other posts underneath it in a normal grid. I’ve managed to create a “Featured Box Top” with the latest post, but that same post shows again under it and I don’t want that.

    I don’t know if there is some Theme Setting to achieve this, some CSS solution with .first-child or I have to mess with the theme php code (that I really don’t understand).

    Any idea?

    Website: ahiafuera.com

    #52393
    Zed
    Cryout Creations mastermind

    You can either use CSS to simply hide the first post in the list or mark that ‘special’ post in a way (place it in a dedicated category or tag it with a special tag) and use a plugin to filter out posts matching that criteria on the homepage posts list.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #52430

    Thanks for your reply, Zed.

    I’ve followed your advice and added the following lines telling the CSS to hide the first article of the #content-masonry ID:

    #content-masonry article:first-of-type {
    display:none;}

    Thing is, with this the second post takes the place of the “hidden” one, but the third one doesn’t take the place of the second one and remains in the second row in the desktop view.

    I think a more correct way to do it would be modifying the posts query, but your template uses a query I don’t understand enough to modify it.

    Any idea?

    Website: ahiafuera.com

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

The topic ‘Landing Page – Latest post with different style’ is closed to new replies.