Archived topic
Make font size of first post's title bigger
7 replies · Started by Daniele on October 18, 2016
Hi Tom,
how can I make the font size of the first post bigger than other posts?
Daniele, this css may help you:
.home article:first-child h2.entry-title { font-size: 40px; }
If you don't know how to use custom css, this tutorial might help: https://generatepress.com/knowledgebase/adding-css/
Hi Jean,
thank you for your tip: unfortunately, your code (of course I use Simple CSS) doesn't work.
.home article:first-child h2.entry-title {
font-size: 40px;
}
Maybe seeing the page can help :D
http://www.distampa.com/category/arte/
I need to make that title (ARTURO DAZZI : MOSTRA DEL CINQUANTENARIO A VILLA TORLONIA) bigger.
Thanks for your help,
Daniele
Since you're using a category, replace .home in Jean's code with .category.
Thanks Tom, that's true.
But it's not working there too..
.category article:first-child h2.entry-title { font-size: 40px; }
.home article:first-child h2.entry-title {
font-size: 40px;
}
Ah I see why that's not working.
Try this instead:
article.masonry-post.width4 h2.entry-title {
font-size: 40px;
}
YEAH!
:D
Thanks!!!
You're welcome :)