No "alt" for images - bad for SEO

  • malba
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 8 months ago - 13 years 8 months ago #7125 by malba
Hello,

I would like to add "alt"-texts to the images in HOT Newsflash for SEO reasons, but this is not possible at the moment.

Can you add this in the next version? Is there a workaround for dummies (I am not much of a developer)?

Thanks for this very nice extension & best regards!
Last edit: 13 years 8 months ago by malba.

Please Log in to join the conversation.

More
13 years 8 months ago #7133 by ivan.milic
Hi,

If you want to set alt to one of existing field like info you can edit:
modules\mod_hot_newsflash\tmpl\default.php

find:

<img src="<?php echo $mosConfig_live_site; ?>/<?php echo $imageFolder; ?>/<?php echo $image[$loop]; ?>" alt="" width="<?php echo $imageWidth; ?>" height="<?php echo $imageHeight; ?>" />

and edit it like this:

<img src="<?php echo $mosConfig_live_site; ?>/<?php echo $imageFolder; ?>/<?php echo $image[$loop]; ?>" alt="<?php echo $info[$loop]; ?>" width="<?php echo $imageWidth; ?>" height="<?php echo $imageHeight; ?>" />

Please Log in to join the conversation.

Time to create page: 0.145 seconds
Powered by Kunena Forum