test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • mpiprojects Friend
    #1085338

    Hello. All of my main images in my articles seem to be clickable. However there is not a modal popup appearing as I would have expected. Instead the image link takes you to the homepage.

    Can you please tell me how to remove this link? I think most logical would be to have a popup modal or no link at all, unless a link is specified in the Gallery article type settings.

    I could only find this file, but I am unsure it’s the right one: /templates/ja_hotel/html/layouts/joomla/content/gallery_image_detail.php

                    <div class="item-image">
                    <a title="" href="<?php echo htmlspecialchars($gallery['link'][$index]); ?>">
                    <img src="<?php echo htmlspecialchars(JUri::root(true).'/'.$src); ?>" alt="<?php echo htmlspecialchars($gallery['caption'][$index]); ?>" itemprop="thumbnailUrl"/>
                    </a>
                    </div>

    Many thanks! Cheers, Emiel.

    • This topic was modified 6 years, 11 months ago by  mpiprojects.
    timtecsa Friend
    #1085360

    The K2 content seems to behave as you expect.

    timtecsa Friend
    #1085361

    See screenshot of css. No idea how to de-activate it 🙁
    Ask @saguaros 🙂


    1. home
    Saguaros Moderator
    #1085458

    Hi,

    You can open this file: root/templates/ja_hotel/html/layouts/joomla/content/image/intro.php

    you will see this snippet of code:

    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
    <a href="<?php echo $link; ?>">
    <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>
    </a>
    </div>

    Just remove the a tag:

    <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
    <?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>
    </div>

    Cheers!

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

This topic contains 3 replies, has 3 voices, and was last updated by  Saguaros 6 years, 11 months ago.

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