• Karel17

    (@karel17)


    Hi,

    – Could not find this topic anywhere, if this is asked before, please direct me to that question –

    I am trying to reverse the H1 and H2 headers, for there is no standard H1 on a (Single) page. There are workarounds which are not that recent and do not apply to the Hueman theme, see below.

    So, anyone idea’s to reverse the H1 and H2?

    Kind regards

    The described approach is looking for a this code in the Single.php, which is not present. <h1 class=”sitename”>Website Title</h1>
    <h2 class=”sitedesc”>Website Description</h2>

Viewing 5 replies - 1 through 5 (of 5 total)
  • bdbrown

    (@bdbrown)

    Hi Karel17. The site title and site description are set in header.php. The site title is set by calling function alx_site_title(). The default theme configuration sets the website title as an <h1> and the website description as a <p> on the home page. On a single post page the site title is changed to a <p> and the post title is an <h1>.
    Hope that helps.

    Thread Starter Karel17

    (@karel17)

    Thanks for the quick reply. However the site title is not an H1

    See the default settings below.

    “<div class=”page-title pad group”>

    <h2>page title</h2>”

    So, that does not seem to work. Do you have any other solutions?
    Thanks in advance! 🙂

    bdbrown

    (@bdbrown)

    That’s the page title which is displayed in the center “heading” bar, between the sidebar headings, above the content area. The site title, which is in the header, is an <h1> on the home page.

    Thread Starter Karel17

    (@karel17)

    Also true, sorry that I am a bit unclear. On a single page, there does not seem to be an <h1>. The post title is an H2, and not an H1 as you say.

    I haven’t adjusted the CSS so that could not be the problem. Also tried multiple places for the menu (top, header, footer) also made no difference.

    However I see that you have managed to get H1 on every page on this site. Could you please tell me how you did it?

    Edit: the posts do have an H1, just the pages don’t.

    bdbrown

    (@bdbrown)

    The site you referred to is the author’s theme web site. I don’t know what customizations he did there. On the default theme I’m guessing (because I didn’t write the theme) that the page title is an h2 so that it doesn’t override, or conflict with, an h1 that the user could put in the content. If you want to change the default configuration you could copy file /inc/page-title.php to a child theme and modify the page title tag for the specific page types.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Reverse headers’ is closed to new replies.