Okay
  Public Ticket #3528246
Insert dynamic alt tag in picture of news carousel
Closed

Comments

  •  1
    Alexandra started the conversation

    Dear Support,

    for accessibility reasons I need to change the HTML of the post carousel(Class: uc_overlay_image_carousel). I inserted the image in a <img> tag but now I need to dynamicaly set the alternative text from each picture as alt.

    How could I do that?

    Best regards,

    Alexandra

    Code from the HTML Item is Attached

    Attached files:  VORLAGE.txt

  •  532
    Igor replied

    Hi,

    I will forward your ticket to the second level support, so they can proceed in helping you.

    Thank you for your understanding!

    Regards,
    Igor

  •  1
    Alexandra replied

    Thank you!

  •  260
    Denys replied

    Hi, Alexandra,

    In order to create a dynamic alt attribute please create a Text Field attribute in attribute`s tab in widget editor. Then insert this Text Field in alt attribute like this: <img src="../your_img_path alt="{{text_field_name}}" /> Then you will be able to use Dynamic Icon inside Elementor Editor to select dynamic value.

    Or you can share admin access to your website and i'll do this for you.

    Please let me know how you would like to proceed.

    Thank you,
    Denys

  •  1
    Alexandra replied

    Hi Denys,

    thanks alot. I will try it tomorrow!

    Best regards,

    Alexandra

  •  260
    Denys replied

    Hi,

    It's been a while since our last chat, so I’m going to mark this as resolved – if you have any further questions, you can start a new ticket or continue this one.

    Thank you