WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Changing product image alt text (1 post)

  1. 1mihkel
    Member
    Posted 7 months ago #

    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.

    Any ideas?

    Thanks,

    http://wordpress.org/plugins/woocommerce/

Reply

You must log in to post.

About this Plugin

About this Topic