How to Style Each WordPress Post Differently - 0 views
-
Luciano Ferrer on 10 Oct 15"Have you ever came across a site that style their posts differently? Some sites have different sticky posts highlighted whereas others have each category post styled with a different color, or some may even have a totally unique outlook altogether. Well, that is exactly what we are going to cover in this article. We will share how you can style different WordPress posts in different ways. So what are we going to use? We will use a function called post_class. Post Class function prints out different post container classes which can be added, typically, in the index.php, single.php, and other template files featuring post content. Note: This tutorial requires that you are somewhat familiar with WordPress theming, and know fairbits of HTML / CSS. "