• Resolved Intacto

    (@intacto)


    themes/hestia/inc/compatability/woocommerce/functions.php

    The issue close to the line 260 where extra space icluded for no reason.

    echo ' , ';

    if ( $nb_of_cat !== 0 ) {
     echo '<h6 class="category">';
     foreach ( $product_categories as $product_category ) {
      if ( $index < $nb_of_cat || $nb_of_cat < 0 ) {
       $product_cat_id   = $product_category->term_id;
       $product_cat_name = $product_category->name;
       if ( ! empty( $product_cat_id ) && ! empty( $product_cat_name ) ) {
        if ( $i ) {
         echo ' , ';
        }
        echo '<a href="' . esc_url( get_term_link( $product_cat_id, 'product_cat' ) ) . '">' . esc_html( $product_cat_name ) . '</a>';
        $i = true;
       }
       $index ++;
      }
     }
     echo '</h6>';
    }

    Please to fix

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Intacto

    (@intacto)

    Should be no space before the comma.

    Thread Starter Intacto

    (@intacto)

    Any progress to remove space before comas in categories list?
    Categories shouldn’t looks like that:
    Cat1 , Cat2 , Cat3
    It must look like below:
    Cat1, Cat2, Cat3

    irinelenache

    (@irinelenache)

    Hello @intacto,
    Thank you for using Hestia and for your contribution to making it better!
    I forwarded the issue to our development team and the fix will be included in the upcoming releases.
    Best regards,
    Irinel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extra space before comma in terms’ is closed to new replies.