August 2017
Beginner
412 pages
10h 30m
English
As you're modifying your theme to make accommodations for different types of pages, you should also know about the CSS classes that WordPress will put into your theme. If you look carefully at the code we've been using, you'll see these two functions:
The body_class() function adds a whole bunch of classes to the body tag, depending on the page you're viewing. For example, the main page of my site has the following class in the body:
<body class=" home blog custom-background"> ...
Read now
Unlock full access