Forum Replies Created
-
AuthorPosts
-
December 1, 2017 at 1:18 pm in reply to: Product Loops appear as h2 heading –> duplicate content #883882
Hello Basilis,
I understand. I tried to solve the problem myself and I would like to ask your opinion on it. I downloaded the file “wc-template-functions” from the server and changed the code as follows:
if ( ! function_exists( ‘woocommerce_template_loop_product_title’ ) ) {
/**
* Show the product title in the product loop. By default this is an h4.
*/
function woocommerce_template_loop_product_title() {
echo ‘<h4 class=”woocommerce-loop-product__title”>’ . get_the_title() . ‘</h4>’;
}
}
if ( ! function_exists( ‘woocommerce_template_loop_category_title’ ) ) {
/**
* Show the subcategory title in the product loop.
*
* @param object $category Category object.
*/
function woocommerce_template_loop_category_title( $category ) {
?>
<h4 class=”woocommerce-loop-category__title”>
<?php
echo esc_html( $category->name );
if ( $category->count > 0 ) {
echo apply_filters( ‘woocommerce_subcategory_count_html’, ‘ <mark class=”count”>(‘ . esc_html( $category->count ) . ‘)</mark>’, $category ); // WPCS: XSS ok.
}
?>
</h4>
<?php
}Basically I manually replaced the h2 with h4 in this product loop function. When I check the website again my problem does not exist anymore. My question now: Do you know whether I can leave it that way or am I destroying something important within the theme by having replaced h2 by h4? So far everything seems to be functional and the way I want it. It would be great if you could give me a quick opinion, because you are more knowledgable than I am :-)
Kind regards,
Annette
November 27, 2017 at 2:50 pm in reply to: Product Loops appear as h2 heading –> duplicate content #882237Hi Basilis,
thank you for getting back to me. I already talked to the woocommerce support and they told me that they cannot help me tweaking it and that I need to contact you. This is a case where I clearly rely on the support of the construtor of the theme, which is Kriesi. Therefore I kindly ask you again to support me solving the problem. I am sure that other Enfold users who employ the Woocommerce Plugin have the same problem. I can also gladly give you the contact info of my WooCommerce contact who works for their support.
I am looking forward to hearing from youand kind regards
Annette
November 21, 2017 at 12:04 pm in reply to: Product Loops appear as h2 heading –> duplicate content #879667Hello John,
I have uploaded my credentials.
I hope you can help me and I am looking forward to hearing from you!
Kind regards,
Annette
-
AuthorPosts