Diffrent look for 1st post
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:
The biggest baner is a post #1. It should be diffrent than others, and the rest should start at post number two.
The biggest baner is a post #1. It should be diffrent than others, and the rest should start at post number two.
- 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
https://github.com/bludit-themes/editor ... p/home.php
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.I would like to create a theme that will show first post in diffrent way and the rest should stay as typical list.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets