Home › Forums › Pro Themes › Corpo Eye Pro › Add image ALT tag to Testimonials
- This topic has 12 replies, 2 voices, and was last updated 5 years, 11 months ago by HammondOne.
-
AuthorPosts
-
December 12, 2018 at 12:04 am #86878HammondOneParticipant
Hi,
How can we add the image alt tag?
It’s in this code block:
<div class=”testimonial-thumb”>“>
Thanks!
HDecember 12, 2018 at 12:04 am #86879HammondOneParticipantSorry, here’s the code:
<div class="testimonial-thumb"><img src="<?php echo esc_url( $testimonial['image'][0] ); ?>"
December 12, 2018 at 5:03 am #86907wensolutionsKeymasterHello @hammondone,
“alt” should be added as an attribute for img tag and can be added as the following code.
<div class="testimonial-thumb"><img src="<?php echo esc_url( $testimonial['image'][0] ); alt="content here" ?>"
Hope this helps.
Regards!!
December 12, 2018 at 10:58 am #86932HammondOneParticipantThe testimonials section is dynamic based on posts.
It is pulling in dynamic images from, I presume, the WordPress media? If so, it should be bringing in the Alt Tag for that media item.
Is the Alt Tag content not available as a param in the array that spits out the testimonials?
If not, it should be. All image output should have the alt tag, regardless of there being any alt tag in the media section.
December 13, 2018 at 12:36 am #86979wensolutionsKeymasterHello @hammondone,
Please after uploading the image try to fill out the inputs that are shown on the right side of the screen. If it still doesn’t solve your problem can you please provide us with the URL so that we can inspect further?
Thank you.
Regards!!
December 13, 2018 at 12:50 am #86980HammondOneParticipantHi,
The alt tag is filled out.
Your code does not output the alt tag.This is your code that appears in inc/widgets.php
<div class="testimonial-thumb"><img src="<?php echo esc_url( $testimonial['image'][0] );?>"
It does not output the alt tag, so you need to update it.
Or, can you just tell me if the alt tag is included as a param that can be output?Thanks!
December 14, 2018 at 11:38 am #87203HammondOneParticipantCan someone respond to this?
We just need to know what the param is so we can include it in the output.
December 16, 2018 at 11:33 pm #87291wensolutionsKeymasterHello @hammondone,
We would like to apologize for the delay in response.
The update will be released soon adding the “alt-tab”.
But actually, for the slider, we are not used to add the alt-tab as it makes no difference in the output. However, we will release the update soon adding the alt-tab.
Hoping for your co-operation.
Thank you.
Regards!!
December 17, 2018 at 11:24 am #87325HammondOneParticipantHi,
Just being clear, though: ALL images should display the ALT tag unless specifically told not to. This is a best practice for HTML, required by SEO and required by all screen readers, etc.
December 17, 2018 at 11:02 pm #87339wensolutionsKeymasterHello @hammondone,
Thank you for the response. We are working on the update and will release soon
Thank you.
Regards!!
January 15, 2019 at 1:16 pm #89060HammondOneParticipantIs there an update to this?
If you’re outputting images to the screen they should have the alt tags.
January 18, 2019 at 11:23 am #89270HammondOneParticipantAny update?
Your theme is not HTML compliant.
This is an easy patch.
Fix it.
January 18, 2019 at 4:43 pm #89278HammondOneParticipantOk, since there’s no response:
For anyone considering buying this theme: don’t
Many of the images do NOT output their Alt or Title tags as part of the the standard HTML tag.
Not only is this bad for SEO, it is also not HTML compliant.
Also, no one seems to be interested in fixing it.
Spend your money somewhere else where the devs care about their product.
-
AuthorPosts
- You must be logged in to reply to this topic.