How to add "alt" to rotator pictures?

  • koliss
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 5 months ago #9095 by koliss
How to add "alt" to rotator pictures?

Please Log in to join the conversation.

More
13 years 5 months ago #9107 by ivan.milic
Hi,

open modules\mod_hot_effects_rotator\tmpl\default.php

you will find this code:
Code:
for ($loop = 1; $loop <= 9; $loop += 1) { if ($imageArray[$loop]) { ?> <?php if($imageLinkArray[$loop]) { ?><a href="<?php echo $imageLinkArray[$loop]; ?>" <?php if ($linkNewWindow) { ?>target="_blank"<?php } ?>><?php } ?><img src="<?php echo $imageFolder; ?>/<?php echo $imageArray[$loop]; ?>" alt="" <?php if ($imageDescArray[$loop]) { ?>title="<?php echo $imageDescArray[$loop]; ?>" <?php } ?> /><?php if($imageLinkArray[$loop]) { ?></a><?php } echo "\n" ?> <?php } }


you see alt="" , you can write either alt="some text" , or use existing variable alt="<?php echo $imageDescArray[$loop]; ?>"

Please Log in to join the conversation.

Time to create page: 0.212 seconds
Powered by Kunena Forum