The tutor shows a way to add a style sheet to a WordPress site.
There are several ways to add a style sheet to WordPress. Herein, I’ll show how I’ve done so.
Let’s imagine the div below is meant to be styled from an external style sheet:
Assuming the div above is class=”hair”, the following style sheet could be added as /blog/styles/hairstyle.css
Next, the following code, added inside the WordPress Theme Functions file, includes the style sheet as the page is rendered:
This method takes concentration to apply. I normally use inline styles, but sometimes an external style sheet makes more sense.
I’ll be talking more about WordPress in future posts:)
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.