Converting Post titles from H4 to H2 tags

Hi there,

I’m using the Talon theme. On the blog page, I’m wanting to change the post title tags which are H4 to H2. I’ve perused the theme files, however, I’ve had little luck. Are you able to offer any assistance?

Hello there,

Create a child theme for Talon. And duplicate this file to your child theme’s folder.

- template-parts/content.php

In the code of those files, replace this code block:

the_title( '<h4 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h4>' );

with:

the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );

Regards,
Kharis