Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Mo0nlight Moderator
    #996285

    Hi,

    You could edit the file. modules/mod_jaclatest_comments/tmpl/default.php

    Change

    <?php if(is_array($item->avatar[0])):?> 
                            <img alt="" src="<?php echo $item->avatar[0][0];?>" style="<?php echo $avartaSize;?>" />
                        <?php else:?>
                            <img alt="" src="<?php echo $item->avatar[0];?>" style="<?php echo $avartaSize;?>" />
                        <?php endif;?>

    To

    <?php if(is_array($item->avatar[0])):?> 
                            <img alt="<?php echo $item->contenttitle;?>" src="<?php echo $item->avatar[0][0];?>" style="<?php echo $avartaSize;?>" />
                        <?php else:?>
                            <img alt="<?php echo $item->contenttitle;?>" src="<?php echo $item->avatar[0];?>" style="<?php echo $avartaSize;?>" />
                        <?php endif;?>

    Regards

    folamour Friend
    #996949

    sorry but this modification crash my site : (

    please go to admin and test by yourself (ive perhaps done a mystake)

    thanks a lot,

    f.

    folamour Friend
    #997003

    hi folks, i’ll modified the fix with a simple alt="avatar"

            <?php if(is_array($item->avatar[0])):?> 
                        <img alt="Avatar" src="<?php echo $item->avatar[0][0];?>" style="<?php echo $avartaSize;?>" />
                    <?php else:?>
                        <img alt="Avatar" src="<?php echo $item->avatar[0];?>" style="<?php echo $avartaSize;?>" />
                    <?php endif;?>

    and that work ; )))))))))))))))))))))

    thanks a lot for your help, please close that case

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  folamour 7 years, 11 months ago.

The topic ‘Missing alt attribute in Ja comment who negatively hurt SEO’ is closed to new replies.