December 12, 2018 at 12:04 am #86878
How can we add the image alt tag?
It’s in this code block:
HDecember 12, 2018 at 12:04 am #86879
Sorry, here’s the code:
<div class="testimonial-thumb"><img src="<?php echo esc_url( $testimonial['image'] ); ?>"December 12, 2018 at 5:03 am #86907
“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'] ); alt="content here" ?>"
Hope this helps.
Regards!!December 12, 2018 at 10:58 am #86932
The 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 #86979
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?
Regards!!December 13, 2018 at 12:50 am #86980
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'] );?>"
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 #87203
Can 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 #87291
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.
Regards!!December 17, 2018 at 11:24 am #87325
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 #87339
Thank you for the response. We are working on the update and will release soon
Regards!!January 15, 2019 at 1:16 pm #89060
Is 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 #89270
Your theme is not HTML compliant.
This is an easy patch.
Fix it.January 18, 2019 at 4:43 pm #89278
Ok, 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.
You must be logged in to reply to this topic.