template_loop_product_title h2- changed to h4 -> wp update -> back to h2
-
Dear Support Team,
i did not find my topic in the previous topics, so I open up this new thread.
The problem is the following:
In the file wc-template-functions.php in line 738 there is the function
if ( ! function_exists( ‘woocommerce_template_loop_product_title’ ) ) {
/**
* Show the product title in the product loop. By default this is an H2.
*/
function woocommerce_template_loop_product_title() {
echo ‘<h4 class=”woocommerce-loop-product__title”>’ . get_the_title() . ‘</h4>’;
}
}Because I do not want every product in the slider to appear as h2 (SEO reasons, appears spammy to google) I changed the code so that the product titles are categorized as h4s. So far everything worked out well until the next WordPress Update just now.
My question:
Is there any code snippet that I can add to the wc-template-functions.php to prevent the function above from being overwritten again and reset to H2?I am hoping that somebody knows the answer to that ??
Looking forward to hearing from you.
Annette
The page I need help with: [log in to see the link]
- The topic ‘template_loop_product_title h2- changed to h4 -> wp update -> back to h2’ is closed to new replies.