• Resolved Gahsto

    (@bkseoexpert)


    Hi,

    I’m building a site that must be 508 compliant, and I need to insert an ALT tag value for the icons used in DM (pdf, mp3, etc)d. I found the following code in wpdm-function.php:

    if ($column_name == 'wpdm-image') {
    //        if(has_post_thumbnail($post_ID))
    //            echo get_the_post_thumbnail( $post_ID, 'thumbnail', array('class'=>'img60px') );
    //        else {
                $icon = get_post_meta($post_ID,'__wpdm_icon', true);
                if($icon!=''){
                    if(file_exists(WP_PLUGIN_DIR.'/'.$icon))
                        $icon = plugins_url('/').$icon;
                     //   $icon = "/download-manager/file-type-icons/blank.png";
    
                    echo "<img src='$icon' class='img60px' alt='image' />";
                } else {
                    echo "<img src='".WPDM_BASE_URL."/file-type-icons/blank.png' title='Default Icon' class='img60px' alt='Icon' />";
                }
            //}
        }
    }

    Is this where the alt value is inserted? Please advise.

    Thanks,
    Michael

    https://www.ads-software.com/plugins/download-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Icon ALT values’ is closed to new replies.