[Resolved] Adding h1 to blog page

Home Forums Support [Resolved] Adding h1 to blog page

Home Forums Support Adding h1 to blog page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1560572
    Margaret

    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!

    #1560682
    David
    Staff
    Customer Support

    Hi there,

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

    #1561187
    Margaret

    It worked! Thanks very much.

    #1561926
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.