Archived topic
How do I make first sentence of post larger
1 reply · Started by Pheonix on January 2, 2021
I'd like to make my first sentences on all of my posts larger like this: https://rafaltomal.com/improve-typography-on-every-website/
It looks like he's using "intro" tag: https://prnt.sc/wf103t
How can I do this?
Hi Pheonix,
The same as you can see from the inspector.
When you add content to a post, give the first sentence a class, for example: intro by using the page editor option:
https://tinyurl.com/yaqqc3my
Then add this CSS to style the intro text:
.intro {
/*change numbers depends on your needs */
font-size:30px;
font-weight: 700;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/