Merge pull request #11047 from widoz/master

Pass heading product title tag to the the_title function
This commit is contained in:
Mike Jolley 2016-06-06 11:31:51 +01:00
commit 3193034b4f
1 changed files with 6 additions and 7 deletions

View File

@ -10,15 +10,14 @@
* happen. When this occurs the version of the template file will be bumped and * happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes. * the readme will list any important changes.
* *
* @see https://docs.woothemes.com/document/template-structure/ * @see https://docs.woothemes.com/document/template-structure/
* @author WooThemes * @author WooThemes
* @package WooCommerce/Templates * @package WooCommerce/Templates
* @version 1.6.4 * @version 1.6.4
*/ */
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly exit; // Exit if accessed directly.
} }
?> the_title( '<h1 itemprop="name" class="product_title entry-title">', '</h1>' );
<h1 itemprop="name" class="product_title entry-title"><?php the_title(); ?></h1>