Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Uplift › Image Alt Tags In Product Pages Vs Product Listings
New Landing › How can we help? › Themeforest Theme Support › Uplift › Image Alt Tags In Product Pages Vs Product Listings
- This topic has 7 replies, 3 voices, and was last updated 7 years by Rui Guerreiro – SUPPORT.
-
Posted in: Uplift
-
December 28, 2016 at 3:31 pm #308217
Thanks again for your awesome support. I’m setting up image names with corresponding alt text for SEO and everything is looking great on product listing pages but on the product display pages, the alt text shows (as far as I can tell) as the image name minus the extension rather than the alt text specified in WordPress media manager.
Is this a WooCommerce function or an element of the Uplift theme?
Is there a reason you’re not pulling the specified alt text for images on the main product display page?
Screenshots attached.
Thanks!
-Alex
Attachments:
You must be logged in to view attached files.December 28, 2016 at 4:03 pm #308229Hi,
I tested on mine and it works fine, maybe some plugin is causing this. Can you disable all plugins except SwiftFramework and Woocommerce and test again?
-Rui
December 28, 2016 at 8:33 pm #308275Hi Rui-
Thanks for getting back so quickly.
Turned off all plugins except WooCommerce and SwiftFramework and the issue persists.
See http://smartchargeam.staging.wpengine.com/ev-charger/commercial/chargepoint-ct4011/
The main image there has the alt tag alt=”ChargePoint-CT4011-electric-car-charging-station-EVSE-1″ which is the file name minus the .jpg extension
However, the correct alt tag, as shown on the product listing page http://smartchargeam.staging.wpengine.com/ev-chargers/ is alt=”ChargePoint CT4011 electric car charging station EVSE – close-up view”
Feel free to log into the Staging server.
Thanks,
-Alex
December 29, 2016 at 6:10 pm #308386Hi,
Can you add your FTP details, I’d like to take a closer look.
December 29, 2016 at 6:27 pm #308390This reply has been marked as private.December 29, 2016 at 6:45 pm #308393Great, can you re-test the page now: http://smartchargeam.staging.wpengine.com/ev-charger/commercial/chargepoint-ct4011/
The function
sf_uplift_single_product_image_html()
located in/uplift/includes/overrides/sf-woocommerce-overrides.php
I amended this:'alt' => $image_title,
To:
'alt' => $image_alt,
December 29, 2016 at 8:09 pm #308395You all are truly awesome – works perfectly. Thanks!
I’ll pull this file down to my local install so I don’t overwrite it later. Are you going to be making this change in a future theme update, or should I consider this a very nice custom personal favor and write a filter for it or otherwise keep it as a custom edit?
Feel free to mark this ticket as resolved.
-Alex
December 30, 2016 at 10:14 am #308422Great. Thanks David.
Yes we will, I just forward it to the dev team so the code can be updated.-Rui
-
Posted in: Uplift
You must be logged in to reply to this topic.