How to disable Lightbox in K2

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
Fri Nov 22, 2013 5:16 pm
Reply with quote
Report this post
Hello i bought the Musicstate Template - Love it !,

But i want to disable the "Lightbox" in my K2 items on my Imageintro.
I already know that i have to delete the <a class="modal" on line 208 in item.php but it doesn't work for me.
Still got that "Lightbox" on my Items..

Greetings from Germany

PS: MySite www.pushatv.de/v10/
User avatar
Fresh Boarder

GK User
Fri Nov 22, 2013 6:06 pm
Reply with quote
Report this post
Please try this... It worked fine for me...
Find File: templates/your theme name/html/com_k2/templates/default/item.php
Find Line: 102 which is below

Code: Select all
<div class="itemImageBlock"> <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>


Replace it with below

Code: Select all
<div class="itemImageBlock"> <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;" />
User avatar
Senior Boarder


cron