Option To Change Page Title Header From H1 To H2

Home Forums Support Option To Change Page Title Header From H1 To H2

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #215043
    Fahmi

    Hi!

    Could you make option in customizer that give user options to choose article header title as H1 or H2?

    #215053
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    On pages, the title is an H1 – this is important for SEO.

    On the posts page, the titles are H2s. This is important as you’re not allowed to have more than one H1 on a single page.

    If you want to change this, you would need to overwrite the content.php template file by adding it to a child theme and adjusting the h2 element manually.

    #215552
    Fahmi

    I already change mine from H1 to H2 manually in theme file.

    I use the H1 manually in my article.

    The usage scenario is like these:

    Let say I write an article;

    Title: GeneratePress Theme Review
    Slug: generatepress-theme-review

    But to make it interesting I change it to;

    Title: GeneratePress Review Theme That You Can Afford Review
    Slug: generatepress-theme-review

    I can’t think of the better title. But you get the idea. The title sometimes have no actual keyword in it.

    If we have the option to change the article title to H2, user can use the H1 tag manually in their article.

    What do you think?

    #215600
    Tom
    Lead Developer
    Lead Developer

    Why not just use the built in H1 to make your title like that?

    Alternatively, use the Disable Elements metabox to remove the content title, and add your own inside the content.

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