Diffrent look for 1st post

Post Reply
kaaleth
Master Bludit
Posts: 117
Joined: Sun Jun 14, 2015 9:55 am

Would anyone provide me a idea how to bring completly new look for first post only? I would like to create a theme that will show first post in diffrent way and the rest should stay as typical list. For example:

Image

The biggest baner is a post #1. It should be diffrent than others, and the rest should start at post number two.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

The template home.php of the theme Editorial shows how this can be done:

https://github.com/bludit-themes/editor ... p/home.php
I would like to create a theme that will show first post in diffrent way and the rest should stay as typical list.
If the posts are shown as a list (with the tags <li>...</li>) or as another group of sibling elements on one page you also can use the solution of dbelov.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply