In this tutorial you will learn to remove lightbox, rollover effects and link gallery item to article.
Access your website root directory using any file manager or via hosting Cpanel.
Go to templates/themeXXXX/html/com_content/category directory and open gallery_item.php file:
Search for touchGallerylink class:
We need to remove that touchGallerylink zoom class and change the actual link.
Also remove span for zoom-bg and zoom-icon.
<a class="touchGalleryLink zoom" href="<?php echo htmlspecialchars($images->image_fulltext); ?>">
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
Save this file and upload to the server, replacing the original one.
Open your site and reload the page, also you may need to clean browser cache to see the changes.
Thank you for watching this video tutorial. Now you know how to remove lightbox, rollover effects and link gallery item to article.
Feel free to check the detailed video tutorial below: