Use H1 Tag for Post Titles in Toujours Theme

  • Unknown's avatar

    Hi,

    I’m using the Toujours theme, and I noticed that my individual blog post titles all use the h2 tag, and my site title is h1. I would like to have the post titles be h1 instead, for better SEO. Is it possible to create a rule in the Custom CSS editor to do this?

    If not, are there any themes included in the Premium plan that use the h1 tag for post titles by default?

    Thanks

    The blog I need help with is: (visible only to logged in users)

  • I don’t believe that there is a way to use CSS to change the HTML of a page as you describe so I think using a theme that does use H1 for the post tiles might be the way to go.
    You’d have to activate a theme and inspect the titles to check what is being used.
    Just a thought though, I think it is semantically correct for there to only be one H1 on the page to you should check the site title as well.

  • Unknown's avatar

    Hi there, that would require editing of the theme files themselves and changing the html in the php script files, and give all of our themes follow the HTML5 standards, changing post or page titles to h1 would not help SEO.

    The themes at WordPress.com, and that included Toujours follow the HTML5 structure. The blog post content (including the heading) is within a set of <article> tags. Within that, is the <header> tag, which is where the post title is, and then content is within a div with the <p> tags. If you look at this section of the World Wide Web Consortium HTML5.3 document, and look at Example 3, you will find that it very closely matches the structure of Toujours blog posts and also static pages. Note that in that example, the post or article title within the <header> tag is an h2.

    There are a lot of changes to the way things are done in HTML, and here at WordPress.com, we work to keep up with those changes as they will govern how things are done on the web.

    It seems to me from looking at SEO sites, many have not caught up with the HTML5 structure changes and are still making recommendations based on HTML4.

    Having an h2 as the post/page title, when the theme is following the HTML5 standards, will not adversely affect SEO.

  • Unknown's avatar

    Hi there, thesacredpath! I’m not sure you’re correct with regard to the h1 not helping SEO per the HTML5 standards: https://www.w3.org/TR/html5/sections.html#headings-and-sections

  • Unknown's avatar

    Posts and page content are contained in an <article> sectioning element. The title for that page or post content is within a descendant <header> element. With HTML5, the search engines pay attention to that and know that that is the title for that article section. With this structure, there is less emphasis placed on whether it is an h1 or an h2.

    If you look at the two examples here, the first shows the <header> element used for the site title complete with a logo. The second example shows an <article> section with the <header> element and it is set as an h2, and is virtually identical to how we have been structuring our themes.

    On our newer themes, we have started to use h1 for post and page titles within the <header> element, but from all indications, whether it is h1 or h2 would have only a minuscule impact on SERP, if at all.

    The more important thing as far as SERP is concerned, is good, strong content, and you seem to be doing very well with that part of things.

  • The topic ‘Use H1 Tag for Post Titles in Toujours Theme’ is closed to new replies.