Extra space before comma in terms
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Extra space before comma in terms’ is closed to new replies.