• 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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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!

    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 5 years, 11 months ago by infensus.
    • This reply was modified 5 years, 11 months ago by infensus.
    • This reply was modified 5 years, 11 months ago by infensus.

    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 5 years, 11 months ago by infensus.
    Thread Starter rmsgreig

    (@rmsgreig)

    great thanks for the information

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Missing Alt Attributes’ is closed to new replies.