I’d suggest a different method.
1) Open up content-single-product.php in the woocommerce folder of the theme
2) Find this line on line 38:
<div class="entry-title" itemprop="name"><?php the_title(); ?></div>
3) Move it below:
<div class="summary entry-summary">
<div class="summary-top clearfix">
4) It should be in this order:
<div class="summary entry-summary">
<div class="summary-top clearfix">
<div class="entry-title" itemprop="name"><?php the_title(); ?></div>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
5) Add this to your custom css:
.woocommerce div.product .entry-title {
display: block;
font-size: 22px;
margin-bottom: 20px;
}
Let me know if this works.
– Kyle