Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Add h1 for homepage latest posts

  • My homepage settings are set for “Your Latest Posts”, but is missing an H1. I looked up previous questions about the site title being used as main h1 adding php code but none seemed to work for me. I’d like to allow the title to be the h1 for the homepage but keep, single posts/pages titles as the h1 as they appear now.

    (visually I hide both my site title and tagline on the Customizing Identity sections)

    Thank you,

    Brandon

  • Hi there,

    The best solution is to add one using a Block Element – Page Hero:
    https://docs.generatepress.com/article/block-element-page-hero/

    Let me know if this helps 🙂

  • Thank you I think I’ve got it

    I’ve created a Page Hero: Site Title, Location: Blog (excluded from all other types of pages I could select that made sense), located after logo in my header. Settled on placement in header since I had already planned to add text to my logo design before I knew h1 wasn’t present, and it appears hiding it could be negative in Google’s eyes.

    I cannot find a way to lessen the space between the h1 text and my logo though, it’s a bit much. I’ve already changed the text size, header padding in Customizing->Layout->Header and the logo itself doesn’t have any border space outside the graphic.

  • Hi there,

    Can you try this CSS to reduce the top margin of the h1?

    .site-header .inside-header > .site-logo + h1 {
        margin-top: 10px !important;
    }
  • that worked perfectly thank you.

  • You are welcome   🙂

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