Diffrent look for 1st post

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

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: 2073
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
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.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply