Site logo

[Resolved] H1 tag on “main-title” class, but only on homepage

Home Forums Support [Resolved] H1 tag on “main-title” class, but only on homepage

Home Forums Support H1 tag on “main-title” class, but only on homepage

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2501897
    Mathieu

    Hi Generatepress team,

    I just changed my theme via your library and I’ve been trying for 2 hours to add a simple <H1>, on the “main-title” class but only of my homepage.

    I’ve already seen posts in the forum with similar problems, but I can’t do it, for any reason. I should mistake somewhere.

    Here is the site in question: blog-ecologie.fr
    I would like to put a <h1> here: https://prnt.sc/zJAh7vENZLWm but only on the homepage

    Could you help me again?
    Thanks 🙂

    #2502014
    Ying
    Staff
    Customer Support

    Hi Mathieu,

    You can use a block element - site header to completely replace the default site header.
    https://docs.generatepress.com/article/block-element-site-header/

    And you can add any class to a headline block
    https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/

    #2502030
    Mathieu

    Hi Ying,

    Thanks for your help.
    I tried but i did not succeed to get exactly this : https://prnt.sc/U7IHKL45YRG4
    I’m not confortable using CSS. I tried to apply differents classes i see on source code but… it do not look the same at all 🙂

    #2502154
    Mathieu

    For any reason ,my CSS header (comparing Homepage and subpage) is not 100% the same but pretty similar now !
    That’s good enough for the moment ! thanks for your help

    #2503514
    Ying
    Staff
    Customer Support

    You are welcome   🙂

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