PageSpeed Insights related with wc-template-functions.php
-
I’m getting the warning “Elements with visible text labels do not have matching accessible names.”.
After checking in more detail, I have found that the file /wp-content/plugins/woocommerce/includes/wc-template-functions.php contains the line
echo '<a aria-label="' . sprintf( esc_attr__( 'Visit product category %1$s', 'woocommerce' ), esc_attr( $category_name ) ) . '" href="' . //esc_url( get_term_link( $category, 'product_cat' ) ) . '">';
with “Visit product category” text that is causing the error. As temporary solution I have replaced this line by
echo '<a href="' . esc_url( get_term_link( $category, 'product_cat' ) ) . '">';
However this error hapens always after any woocommerce update.
Please fix this in future Woocommerce release / update.
Thanks
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘PageSpeed Insights related with wc-template-functions.php’ is closed to new replies.