WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
No alt tags on 'Users who bought this also bought' images (5 posts)

  1. igloobob
    Member
    Posted 7 months ago #

    Hello,

    it's come to my attention there are no alt tags added to the 96px images used on 'Users who bought this also bought'.

    How can this be fixed please does anyone know? Or is there some setting I've missed to make this work?

    Thanks

    http://wordpress.org/plugins/wp-e-commerce/

  2. igloobob
    Member
    Posted 7 months ago #

    Does anyone know how this can be fixed? I'm sure it's a WPEC issue and definitely needs fixing, bad times when there's no alt tags on product images.

    My client's had an SEO report done and this has cropped up - over 500 instances of missing alt tags on these auto generated product images. We definitely have alt tags on the images when we uploaded them.

  3. Jeff Pye Brook
    Member
    Posted 7 months ago #

    If you wanted to add alt image tags to the thumbnails I think the place to do it is in wpsc-components\theme-engine-v1\helpers\product.php.

    You could also create your own function and reference it it from your single product theme file in place of wpsc_also_bought.

    I am not sure if there was a reason the alt image tags were not included by default.

  4. igloobob
    Member
    Posted 7 months ago #

    Thanks for the suggestions Jeff, probably beyond me but I'll have a crack!

  5. Jeff Pye Brook
    Member
    Posted 7 months ago #

    It shouldn't be too difficult to put a patch in place.

    As an example to work from you can see how WordPress gets the tags from wp_get_attachment_image function in this file

    https://core.trac.wordpress.org/browser/tags/3.8/src/wp-includes/media.php#L0

    Let me know if you need help

Reply

You must log in to post.

About this Plugin

About this Topic