Change title tag to H1 on indiviudal product page

How to I change the title tag to H1 on all indiviudal product pages. Is there some php I should change or add to my child theme?

I’d like to be able to set my own H1 tag in the product description, which is why I am trying to change the title of the page to title tags.

Sample page: https://kannakart.com/product/pax-3-vaporizer/

Hi There,

Please create a new directory in your child theme: /woocommerce/single-product/

After that create a new title.php file with the following code:

<?php
/**
 * Single Product title
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product/title.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see        https://docs.woocommerce.com/document/template-structure/
 * @author     WooThemes
 * @package    WooCommerce/Templates
 * @version    1.6.4
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

the_title( '<h2 class="product_title entry-title">', '</h2>' );

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.