I am using Woocommerce with slightly edited Mystile theme. I would like to change the product image alt texts to produc titles – right now alt text show file name and that is messy. I don’t want to update all al texts manually.
I think I should edit this line in product-thumbnails.php:
$image_title = esc_attr( get_the_title( $attachment_id ) );
but I am totally unsure what to write there.
- The topic ‘Changing product image alt text’ is closed to new replies.