Different headings for posts and pages in FSE theme
-
I want H2 headings look different in posts as opposed to on pages. For instance, so that H2 are 1.2em in font-size on posts and 1.8em on pages.
With classic CSS this isn’t hard, as I can target the class for the page or post and then h2.
But with theme.json, what’s the best way to add this? Or should I add it in the template file?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Different headings for posts and pages in FSE theme’ is closed to new replies.