Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #876770

    Dear Support Team,

    I just checked with MOZ Bar that our website (in this case I looked at the homepage: https://dieperlenfee.com/ but this also happens on other pages ) contains 24 H2 subheadings which were not manually assigned.
    Looking at the Source Code I find the following tag for all the products that are displayed on the page:

    <h2 class=”woocommerce-loop-product__title”>Product Titel</h2>

    I already researched that this might be a bug, bc by default the WooCommerce-product loop should be coded as H3. But I do not want to mess with the wc-template-functions.php file by replacing h2 by h3. So I wrote to the Woocommerce Support but they replied that the sites layout is controlled by the active theme and that I should contact the Kriesi Support Center

    How can I fix the problem in order to remove these spammy product titles from the H2 level?

    Kind regards,
    Annette

    • This topic was modified 7 years, 1 month ago by dieperlenfee.
    #877892

    Hey dieperlenfee,

    Please, can you provide to us your WP credentials?

    Best regards,
    John Torvik

    #879667

    Hello John,

    I have uploaded my credentials.

    I hope you can help me and I am looking forward to hearing from you!

    Kind regards,

    Annette

    #881410

    Hi,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #882237

    Hi 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

    #882893

    Hi,

    That is how the theme is designed.
    To modify it it would require to do a lot of changes in the code and in a child theme where we have to put the files and then edit them
    We hope you understand that this is way out from what we are doing for supprot and we provide solutions for simple stuff.

    WooCommerce support should also not work on it as again, it is a modification you want to do on the theme. Any freelancer could help you and the price point can be really cheap for that.

    Thank you

    Best regards,
    Basilis

    #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

    #884225

    Hi,
    You are not harming anything by doing this, the h2 & h4 are only styles which can be changed with css should you have any styling issues. In the future if you find an issue let us know and we will be able to help.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.