[Resolved] Make font size of first post's title bigger

Home Forums Support [Resolved] Make font size of first post's title bigger

Home Forums Support Make font size of first post's title bigger

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #236701
    Daniele

    Hi Tom,
    how can I make the font size of the first post bigger than other posts?

    #236731
    Jean Paiva
    Developer

    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/

    #236735
    Daniele

    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 πŸ˜€

    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

    #236782
    Tom
    Lead Developer
    Lead Developer

    Since you’re using a category, replace .home in Jean’s code with .category.

    #236886
    Daniele

    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;
    }

    #237012
    Tom
    Lead Developer
    Lead Developer

    Ah I see why that’s not working.

    Try this instead:

    article.masonry-post.width4 h2.entry-title {
        font-size: 40px;
    }
    #237122
    Daniele

    YEAH!

    πŸ˜€

    Thanks!!!

    #237159
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.