daniel1983 LiteCart Fan Tól től Netherlands Tagság márc. 2021 óta daniel1983 23 jún. 2024 10:47 Is it possible to put a link behind the main image so that you go directly to the added file? I think the image is large enough and does not need to be enlarged when I click on it, I would like to change this so that you go directly to the attached file. I have tried several things in Vmod but I keep getting error message after error message. I am looking at the code below from views/box_product <a class="main-image thumbnail" href="<?php echo document::href_rlink(FS_DIR_STORAGE . $image['original']); ?>" data-toggle="lightbox" data-gallery="product"> <img class="img-responsive" src="<?php echo document::href_rlink(FS_DIR_STORAGE . $image['thumbnail']); ?>" srcset="<?php echo document::href_rlink(FS_DIR_STORAGE . $image['thumbnail']); ?> 1x, <?php echo document::href_rlink(FS_DIR_STORAGE . $image['thumbnail_2x']); ?> 2x" style="aspect-ratio: <?php echo $image['ratio']; ?>;" alt="" title="<?php echo functions::escape_html($name); ?>" /> <?php echo $sticker; ?> </a> </div>```
tim Founder Tól től Sweden Tagság máj. 2013 óta tim 23 jún. 2024 15:09 To navigate directly to an image just remove the attributes data-toggle="lightbox" and data-gallery="product" from the anchor tag.