title: Storing woocommerce_page_title in a variable and display it in Woocommerce
body: <p>I would like to display the page-title over the category-image. I copied this code </p>
  
  <pre><code>&lt;h1 class="page-title"&gt;&lt;?php woocommerce_page_title(); ?&gt;&lt;/h1&gt;
  </code></pre>
  
  <p>from the "template-archive-product.php" to "woocommerce-hook.php" as followed:</p>
  
  <pre><code>$html .= '&lt;h1 class="page-title"&gt;'&lt;?php woocommerce_page_title(); ?&gt;'&lt;/h1&gt;';
  </code></pre>
  
  <p>Now the title doesn't appear. When I am checking the dev tools, the title is like a html-comment.</p>
  
  <pre><code>&lt;h1 class="page-title"&gt;&lt;!--?php woocommerce_page_title(); ?--&gt;&lt;/h1&gt;
  </code></pre>
  
  <p>It would be great if someone could help me.</p>