Reply To: New to Styled Themes

Home Forums Main Forum General Topics New to Styled Themes Reply To: New to Styled Themes

#19089
Sushil Adhikari
Moderator

Fonts are really complicated to code into a theme, so it’s usually best to use a font plugin. These will often give you a lot more control of font family, size, and other attributes than what a theme can give. Only thing you would need to know is what element a font belongs to that you want to change. The style.css has a lot of font styling throughout on various selectors, so when you know what you want to change, you can apply that with the font plugin. So for example, if you want to change the post or page titles, these are h1 and h2 headings, each has a class “entry-title”. So you would do a change like this:

h1.entry-title {
font-size: 22px;
}

You can of course, add colours etc. The selector is h1, the class is “entry-title” and the font-size is the property (or properties) of the selector and class, then 22px is the value. Fun hey! :cheer: