A WordPress site is made up of lots of different types of pages. The home page, post pages, category pages etc. So what if you could control how each of these looked individually?
You could create different template files for each, but that’s time consuming and makes it difficult to easily update across your whole website.
In this article, we’ll show you how you can set the <body> tag to have a different ID depending on the type of page, and then how you can use CSS to style the page any way you like because of that. No more template editing needed in the future!