Site logo

Archived topic

Custom Blog page no H1

3 replies · Started by Dan on June 6, 2022

Viewing posts 1–4 of 4

Hello, I seem to be having an issue getting a H1 generated on a custom blog page. I dont have the site title disabled from what I can see inside of wp-admin.

I took a look at this post and tried this code inside of my functions.php but no luck. (https://generatepress.com/forums/topic/blog-page-missing-h1-tag/) Let me know if you have any thoughts!

Hi there,

the Blog page ( ie. the Settings > Reading > Page thats showing latest posts ) doesn't have a H1 Title by default.
And that code works when there is a Site Title on display.

If you want to display a H1 title on your blog then the simplest method is to add one using a Block Element:

https://docs.generatepress.com/article/block-element-page-hero/

The Element Type: Page Hero will automatically position it after the header and before the content.
And you can set the Display Rules > Location to: Blog

Thank you David! This worked for me.

You're welcome

This archived topic is closed to new replies.