Twenty Twelve
How to change page title to h2 tag? (3 posts)

  1. ljubomir69
    Posted 3 years ago #

    The name of site is in h1 tag and the page name is in h1 tag.I dont want to have duplicate h1 tags on site.
    How can I change that?How to change page title to h2 tag?

  2. WPyogi
    Forum Moderator
    Posted 3 years ago #

    How familiar are you with HTML, CSS and WP? What you want to do is quite involved. This thread addresses the question further:


  3. Pothi
    Posted 3 years ago #

    There are some valid points on this topic in the linked article by WPyogi.

    Anyway, the following are some guidelines to change those h1 tags to h2 tags...

    - Create a child theme
    - copy content.php from parent theme's directory to the child theme's directory
    - replace all instances of 'h1' to 'h2' in that file. (actually 4 instances, including the closing tags)

    I hope this helps.

    BTW, if you do change those tags (from h1 to h2), the site may not look as earlier. So, you may want to play around with the styles of h2 tag to make it look like h1, to bring the original UI.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.