Title: Dynamic &#8216;alt=&#8217; tag missing in HTML code
Last modified: October 1, 2021

---

# Dynamic ‘alt=’ tag missing in HTML code

 *  [blu900](https://wordpress.org/support/users/blu900/)
 * (@blu900)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/dynamic-alt-tag-missing-in-html-code/)
 * Hello, is there any way to retrive and insert the alt text info dynamically from
   the image to the generated html code?
    The alt tag is completely missing as general
   behaviour or if it is set in a php function as ‘$attributes’ is not dynamic but
   a fixed string, as in this example: (php code)’alt’ => ‘alt_text_by_hand’ –> (
   html result) “…alt=”alt_text_by_hand” srcset=”[http://…&#8221](http://…&#8221);
   Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdynamic-alt-tag-missing-in-html-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [stefanledin](https://wordpress.org/support/users/stefanledin/)
 * (@stefanledin)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/dynamic-alt-tag-missing-in-html-code/#post-14927630)
 * Hi!
    The plugin isn’t supported anymore I’m afraid :/ But there are a few ways
   to work with attributes on the `<img>`. Maybe you could use filters or the `rwp_img()`
   function. Take a look at [the documentation](https://github.com/stefanledin/responsify-wp)
   and see if it helps you!
 * Good luck 🙂
 *  Thread Starter [blu900](https://wordpress.org/support/users/blu900/)
 * (@blu900)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/dynamic-alt-tag-missing-in-html-code/#post-14929764)
 * Thank You. All the best!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Dynamic ‘alt=’ tag missing in HTML code’ is closed to new replies.

 * ![](https://ps.w.org/responsify-wp/assets/icon-256x256.png?rev=1209208)
 * [Responsify WP](https://wordpress.org/plugins/responsify-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsify-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsify-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/responsify-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsify-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsify-wp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [blu900](https://wordpress.org/support/users/blu900/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/dynamic-alt-tag-missing-in-html-code/#post-14929764)
 * Status: not resolved