Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Effects Slider Joomla module.

Topic-icon How to add "alt" to rotator pictures?

More
6 years 4 months ago #9095 by koliss
koliss created the topic: How to add "alt" to rotator pictures?
How to add "alt" to rotator pictures?

Please Log in to join the conversation.

More
6 years 4 months ago #9107 by ivan.milic
ivan.milic replied the topic: Re: How to add "alt" to rotator pictures?
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 to join the conversation.

Time to create page: 0.123 seconds

Links, Partners and Social Media