• Resolved omahoung

    (@omahoung)


    Hi there,

    Hope you’re doing well! I just wanted to bring to your attention a possible issue with the file lifterlms/includes/llms.template.functions.php line 807, in the function llms_featured_img(). Currently, the code uses the title of the course as the alt attribute for the featured image, but I think it would be better to use the alt attribute of the image itself (if it exists). Here’s the relevant code:

    return apply_filters( 'lifterlms_featured_img', '<img src="' . $img[0] . '" alt="' . get_the_title( $post_id ) . '" class="llms-featured-image wp-post-image">' );

    I’ve been using LifterLMS on a multilingual site and I noticed that when I set a course to a specific language, the language tag in the title caused the code to break. I was able to solve the issue by using the lifterlms_featured_img filter, but I think it would be better if the alt attribute of the featured image was used instead.

    Could you please take a look at this and consider making the adjustment in a future version?

    Thank you for your time!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @omahoung

    Thank you for reaching out!

    We’ve opened an issue with our development team to have a look at the issue you’ve described here, and figure out how to move forward with any updates.

    Thank you for bringing this to the team’s attention! If you notice any further issues with the template please do let us know!

    All the best,

    Thread Starter omahoung

    (@omahoung)

    Thank you for letting me know that you’ve opened an issue with your development team. I look forward to hearing about any updates or solutions.

    I will definitely keep you posted if I notice any further issues with a template.

    Thanks again for your help.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured image alt attribute’ is closed to new replies.