Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Armenos Lumen Leviticus Emmanuel Friend
    #200859

    Using ALT And TITLE Attributes in JA Slideshow Lite

    How can I add alt attribute to images?
    I would like to add some disciption to all images: sl1-bg.png, sl1-first.png, sl1-second.png

    Thanks in advance.

    Ninja Lead Moderator
    #547493

    You can try with my tweak:

    – Open templates/ja_nuevo/html/mod_jaslideshowlite/custom.php file

    – Find and change

    <?php if(isset($item->bg) || isset($item->img)) : ?>
    <img class="ja-ss-item-bg" src="<?php echo (isset($item->bg)? $item->bg : $item->img);?>" alt=""/>
    <?php endif; ?>

    <?php if(isset($item->first)): ?>
    <div class="ja-ss-sprite first animate delay500 adelay1500 duration500">
    <img class="ja-ss-item-img" src="<?php echo $item->first;?>" alt=""/>
    </div>
    <?php endif; ?>

    <?php if(isset($item->second)): ?>
    <div class="ja-ss-sprite second animate delay500 adelay2000 duration500">
    <img class="ja-ss-item-img" src="<?php echo $item->second;?>" alt="<?php echo str_replace('"', '"/', strip_tags($item->caption) );?>"/>
    </div>
    <?php endif; ?>

    To

    <?php if(isset($item->bg) || isset($item->img)) : ?>
    <img class="ja-ss-item-bg" src="<?php echo (isset($item->bg)? $item->bg : $item->img);?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>"/>
    <?php endif; ?>

    <?php if(isset($item->first)): ?>
    <div class="ja-ss-sprite first animate delay500 adelay1500 duration500">
    <img class="ja-ss-item-img" src="<?php echo $item->first;?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>"/>
    </div>
    <?php endif; ?>
    <?php if(isset($item->second)): ?>
    <div class="ja-ss-sprite second animate delay500 adelay2000 duration500">
    <img class="ja-ss-item-img" src="<?php echo $item->second;?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" />
    </div>
    <?php endif; ?>

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

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum