Site logo

Archived topic

How can I define heading style such as font size for post only?

3 replies · Started by Jack on February 21, 2023

Viewing posts 1–4 of 4

How can I define heading style such as font size for posts only? Thank you.

Sorry for the misunderstanding.

I mean, how can I set up the CSS for heading tags like H1, H2 for all the posts?

If I set up from the customizer, all pages and posts will have the same style for headings.

But I want to show different heading style for the posts only.

I hope I made it clear.

Jack

I see. In Appearance > Customize > Typography, you can create a Typography rule to target those. Just set the Target Element to Custom - .single.single-post h1.

Example: https://share.getcloudapp.com/6qubKYJJ

For H2s, you can create a new rule with this as the target element: .single.single-post h2

This archived topic is closed to new replies.