alt attribute can’t be changed for category images
-
Hello,
It seems WooCommerce always uses the category name as the alt text for the category image, ignoring the attachment details.
function woocommerce_subcategory_thumbnail( $category ) { ... echo '<img src="' . esc_url( $image ) . '" alt="' . esc_attr( $category->name ) . '" ... ...
Is there any hook that would allow me to change it? Otherwise, can you adjust the plugin to use the category name only when the alt is not defined?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘alt attribute can’t be changed for category images’ is closed to new replies.