Site logo

Archived topic

Adding h1 to blog page

3 replies · Started by Margaret on December 1, 2020

Viewing posts 1–4 of 4

Hello,

The h1 tag automatically appears on all pages except the Blog page. I'm wondering how I can add it so that it looks the same as it does on all other pages.

I tried creating a header element according to these steps:
https://docs.generatepress.com/article/header-element-overview/

The h1 did appear, but now I am trying to adjust the location. I would like the title to appear to the right of the sidebar, at the top of the content. I tried adding the following classes but was unsuccessful:

inside-article
entry-header
entry-title
entry-content

I also tried duplicating the HTML the way it appears on the "Videos" page (Videos is a blog category), but was unsuccessful as well. The current HTML I have is:

<header class="page-header masonry-brick">
	<h1 class="page-title">
		Blog
</h1>
</header>

without any element classes.

Thanks!

Hi there,

use a Hook Element to add the HTML you have above, and select the generate_before_main_content hook

It worked! Thanks very much.

You're welcome

This archived topic is closed to new replies.