Archived topic
How can I define heading style such as font size for post only?
3 replies · Started by Jack on February 21, 2023
How can I define heading style such as font size for posts only? Thank you.
Hi Jack,
Which specific text are you wanting to change?
Can you provide a link to one of your posts for reference?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
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