Tag Archives: css class
If you want to have different look and feel for post one after the another. This snippet will let do that quite easily. It will add “alt” class to alternative posts and you can then change, lets say, background color or border to make it different from the adjacent posts.
Add following snippet to “functions.php” Snippet Result It will add “first-post” class to first post of the every post loop.