× Discussion about Hot Effects Slider Joomla module.

How to add "alt" to rotator pictures?

More
8 years 5 months ago #9095 by koliss
How to add "alt" to rotator pictures?

Please Log in or Create an account to join the conversation.

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

open modules\mod_hot_effects_rotator\tmpl\default.php

you will find this 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 or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.091 seconds