Home Forums Pro Themes Corpo Eye Pro Add image ALT tag to Testimonials

Tagged: ,

This topic contains 12 replies, has 2 voices, and was last updated by  HammondOne 4 months, 4 weeks ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #86878

    HammondOne
    Participant

    Hi,

    How can we add the image alt tag?

    It’s in this code block:

    <div class=”testimonial-thumb”>“>

    Thanks!
    H

    #86879

    HammondOne
    Participant

    Sorry, here’s the code:

    <div class="testimonial-thumb"><img src="<?php echo esc_url( $testimonial['image'][0] ); ?>"

    #86907

    wensolutions
    Keymaster

    Hello @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!!

    #86932

    HammondOne
    Participant

    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.

    #86979

    wensolutions
    Keymaster

    Hello @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!!

    #86980

    HammondOne
    Participant

    Hi,

    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!

    #87203

    HammondOne
    Participant

    Can someone respond to this?

    We just need to know what the param is so we can include it in the output.

    #87291

    wensolutions
    Keymaster

    Hello @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!!

    #87325

    HammondOne
    Participant

    Hi,

    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.

    #87339

    wensolutions
    Keymaster

    Hello @hammondone,

    Thank you for the response. We are working on the update and will release soon

    Thank you.

    Regards!!

    #89060

    HammondOne
    Participant

    Is there an update to this?

    If you’re outputting images to the screen they should have the alt tags.

    #89270

    HammondOne
    Participant

    Any update?

    Your theme is not HTML compliant.

    This is an easy patch.

    Fix it.

    #89278

    HammondOne
    Participant

    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.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.