Lightbox on K2 Category page

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Oct 02, 2014 4:08 pm
Reply with quote
Report this post
Is there a way to have the image open to the lightbox on the category page, instead of linking to the item detail page?

Example here:
http://www.forecaststore.com/2014/fashi ... g/stizzoli

the images link to the detail page, want them to just show larger version, with title only linking to detail page.

Thanks
User avatar
Fresh Boarder

teitbite
Sat Oct 04, 2014 8:54 am
Reply with quote
Report this post
Hi

You need to edit /html/com_k2/template/default/category_item.php and replace the code loading the image to:

Code: Select all
<a class="itemImage modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>"> <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" /> </a>
User avatar
Moderator


cron