Change the post title tag to h2

Note : the following code snippet requires advanced WordPress developer skills. There's no guarantee that this snippet works as is with the latest version of our themes, and with the latest version of WordPress. That's why you need to always test any code snippets in a staging environment before implementing it in a production site.

In the Customizr WordPress theme, you can easily change the default h1 html tag of the post or page title with the ‘tc_content_title_tag’ filter.

The quick example below illustrates how to change every post of page title to h2 (instead of the default h1)

You can be more specific and use the WordPress conditional tags


Where to paste this code? => in your functions.php file. I strongly recommend to create a child theme. Download a start-up child theme here.

Everything you need to know about child theme with Customizr here.

Related Snippets you may also like

8 thoughts on “Change the post title tag to h2

  • Matt Bingham

    Any idea how to change the post titles on Archive/category pages from h1 to h2; and not on the post page itself?

  • Lee

    I’m trying to just take out the .format-icon. How do I do that? I tried overwriting the css to have the font-family to something else but that didn’t work. I just want to take out .format-icon in the html. How do I do that?

    • Nicolas Post author

      Hi Lee, you can use filters to remove them : tc_content_title_icon and tc_archive_icon.

      Paste this code in your functions.php file and you are done

Comments are closed.