Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • riparafiles Friend
    #208165

    Hi,
    I Customized position 5-6-7 with my text and my images. They are articles of a custom category and all is working well. The question is… we have images “coming up” with an animation scrolling the site in those modules. It is possible to link to the same article the image?

    Now the user must click on Read More to see the article. I want user read the artcle if click on image too.

    Thanks

    Ninja Lead Moderator
    #576213

    Use this way to add the link into image tag

    Open templates/ja_beranis/html/mod_articles_category/features.php file

    find and change

    <div class="img-thumb">
    <img
    <?php if ($images->image_intro_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
    </div>

    to

    <div class="img-thumb">
    <a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>"><img
    <?php if ($images->image_intro_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/></a>
    </div>

    and make sure to change both places on this file.

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, 4 months ago.

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