Title: Missing Alt Attributes
Last modified: November 30, 2018

---

# Missing Alt Attributes

 *  [rmsgreig](https://wordpress.org/support/users/rmsgreig/)
 * (@rmsgreig)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/missing-alt-attributes/)
 * all nd_options are missing text in their alt tags, has this been a problem for
   anybody else? what is the best way to resolve this? Is there a function that 
   would be suitable?
    Many Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-alt-attributes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [infensus](https://wordpress.org/support/users/infensus/)
 * (@infensus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/missing-alt-attributes/#post-11469252)
 * Yeah i agree, i check my website with seo auditor, and nick dark shortcodes dont
   have alts in those images,
 * 1 icon-close-white.svg
    2 world-white.svg 3 share-white.svg 4 facebook-white.
   svg 5 twitter-white.svg 6 pin-white.svg 7 star-white.svg 8 logo4-1.png 9 logo3.
   png 10 icon-menu.svg 11 logo-7.png 12 facebook.svg 13 twitter.svg 14 instagram.
   svg 15 youtube.svg
 * Can some1 help me to fix this ?
    Best regards Damian!
 *  [infensus](https://wordpress.org/support/users/infensus/)
 * (@infensus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/missing-alt-attributes/#post-11472700)
 * OK i repair some functions to get alts
 * For social alts (footer)
 * first open file index.php from /wp-content/plugins/nd-shortcodes/addons/customizer/
   shortcodes/social/
 * and add (10 LINE)
    `'alt' => '',` next go to 31 line and find `$nd_options_str.
   = '<a target="_blank" href="'.$nd_options_social['link'].'"><img alt="" width
   ="40" height="40" class="nd_options_margin_5" src="'.$nd_options_social_image.'"
   ></a>';`
 * change it to
 * `$nd_options_str .= '<a target="_blank" href="'.$nd_options_social['link'].'"
   ><img alt="'.$nd_options_social['alt'].'" width="40" height="40" class="nd_options_margin_5"
   src="'.$nd_options_social_image.'"></a>';`
 * This will repair the alts in social icons
 * save and upload file via FTP
    next go to theme options find your footer layout
   and add the alts!
 * for example i looks like:
 * `[nd_social social='facebook' link='https://web.facebook.com/pyrastudio' alt='
   nasz fanpage na facebooku']`
    -  This reply was modified 7 years, 1 month ago by [infensus](https://wordpress.org/support/users/infensus/).
    -  This reply was modified 7 years, 1 month ago by [infensus](https://wordpress.org/support/users/infensus/).
    -  This reply was modified 7 years, 1 month ago by [infensus](https://wordpress.org/support/users/infensus/).
 *  [infensus](https://wordpress.org/support/users/infensus/)
 * (@infensus)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/missing-alt-attributes/#post-11472757)
 * to repair alts in Header
 * first open file index.php from
    /wp-content/plugins/nd-shortcodes/addons/customizer/
   shortcodes/top-header
 * ADD (18 LINE)
 * `'alt' => '',`
 * GO to (71 LINE) find
 * `<a href="'.$nd_options_icon_text['link'].'"><img alt="" width="15" height="15"
   class="'.$nd_options_icon_margin.' nd_options_float_left" src="'.$nd_options_icon_text_image.'"
   ></a>`
 * replace with
 * `<a href="'.$nd_options_icon_text['link'].'"><img alt="'.$nd_options_icon_text['
   alt'].'" width="15" height="15" class="'.$nd_options_icon_margin.' nd_options_float_left"
   src="'.$nd_options_icon_text_image.'"></a>`
 * GO TO 87 line and find
 * `<a href="'.$nd_options_icon_text['link'].'"><img alt="" width="'.$nd_options_image_width.'"
   class="'.$nd_options_icon_margin.' nd_options_float_left" src="'.$nd_options_icon_text_image.'"
   ></a>`
 * REPLACE WITH
 * `<a href="'.$nd_options_icon_text['link'].'"><img alt="'.$nd_options_icon_text['
   alt'].'" width="'.$nd_options_image_width.'" class="'.$nd_options_icon_margin.'
   nd_options_float_left" src="'.$nd_options_icon_text_image.'"></a>`
 * Save and upload file via FTP
    Next go to theme options find your header layout
   and add the alts!
 * for example shortcode with alt looks now
 * `[nd_social social='facebook' link='https://web.facebook.com/pyrastudio' alt='
   nasz fanpage na facebooku']`
    -  This reply was modified 7 years, 1 month ago by [infensus](https://wordpress.org/support/users/infensus/).
 *  Thread Starter [rmsgreig](https://wordpress.org/support/users/rmsgreig/)
 * (@rmsgreig)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/missing-alt-attributes/#post-11508959)
 * great thanks for the information

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

The topic ‘Missing Alt Attributes’ is closed to new replies.

 * ![](https://ps.w.org/nd-shortcodes/assets/icon-256x256.jpg?rev=1498667)
 * [ND Shortcodes](https://wordpress.org/plugins/nd-shortcodes/)
 * [Support Threads](https://wordpress.org/support/plugin/nd-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/nd-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nd-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nd-shortcodes/reviews/)

## Tags

 * [alt text](https://wordpress.org/support/topic-tag/alt-text/)

 * 4 replies
 * 2 participants
 * Last reply from: [rmsgreig](https://wordpress.org/support/users/rmsgreig/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/missing-alt-attributes/#post-11508959)
 * Status: not resolved