It isn’t so easy to use custom fonts anymore. I’m using an app for custom fonts that worked fine on older themes. However, there seem to be so many subclasses specified throughout the Horizon themes, often with unique Block IDs, etc., that I keep finding the theme fault rendered instead of my custom font.
It seems best to approach the issue from a higher level. What is the best way to specify my fonts in these four categories so that everything rendered downstream is correct?
Use !important sparingly but strategically
Since Horizon applies unique selectors (like .h2.block-123abc), your global layer may still get overridden. Applying !important on your high-level rules ensures your font cascades everywhere.
(Optional) Theme-wide reset
If Horizon is very aggressive with subclassing, you can apply a “reset”:
* {
font-family: inherit !important;
}
Then rely on the 4 category overrides above to “re-assign” fonts properly.