WordPress.org

Forums

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

  1. 1mihkel
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic