K2 Item Image lightbox effect
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Sun Jul 22, 2012 9:22 pm
- Reply with quote
- Report this post
Hi Gavick Pro Community: I'm using fashion template and find my way arround some settings but got to a dead end with the item image of K2 articles in the item view.
Images from home page or category page have a zoom effect which we find where in the CSS to adjust to fit the project requirements, but when we get to the article itself the image shown in the header if you click on it a lightbox effect is shown with a larger version of the image or the same image.
My enquiry is: Is it possible to dissable the lightbox effect for the image shown in the top of the article in the item view through the template manager or is a K2 item setting or is a CSS Setting.
Thanks
Images from home page or category page have a zoom effect which we find where in the CSS to adjust to fit the project requirements, but when we get to the article itself the image shown in the header if you click on it a lightbox effect is shown with a larger version of the image or the same image.
My enquiry is: Is it possible to dissable the lightbox effect for the image shown in the top of the article in the item view through the template manager or is a K2 item setting or is a CSS Setting.
Thanks
-

- Fresh Boarder
- GK User
- Sun Jul 22, 2012 9:50 pm
- Reply with quote
- Report this post
You need to do below edit which will remove modal effect and "a class" link so it just shows image only.
Find File: templates/gk_fashion/html/com_k2/templates/default/item.php
Find Line: 25 which is below
Replace it with below
See you around...
Find File: templates/gk_fashion/html/com_k2/templates/default/item.php
Find Line: 25 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;" />
See you around...
-

- Platinum Boarder
- GK User
- Thu Aug 23, 2012 1:13 am
- Reply with quote
- Report this post
Thanks! it works great
-

- Fresh Boarder
- GK User
- Fri Aug 24, 2012 11:20 am
- Reply with quote
- Report this post
No problem at all, see you around...
-

- Platinum Boarder
- GK User
- Thu Oct 25, 2012 7:45 am
- Reply with quote
- Report this post
Hi Gavick Pro Community
I have the same problem, but I'm using "YourShop". I already tried what "NormanUK" wrote, but it didn't work. It would be very useful for me to disable item image popups ...
Hope to read from you soon
Kind regards from Switzerland
I have the same problem, but I'm using "YourShop". I already tried what "NormanUK" wrote, but it didn't work. It would be very useful for me to disable item image popups ...
Hope to read from you soon
Kind regards from Switzerland
-

- Fresh Boarder
- GK User
- Thu Oct 25, 2012 12:46 pm
- Reply with quote
- Report this post
I've the solution:
In "...yourshop/html/com_k2/templates/default/item.php" (Line 272) simply delete "a class="modal"
In "...yourshop/html/com_k2/templates/default/item.php" (Line 272) simply delete "a class="modal"
-

- Fresh Boarder
- GK User
- Wed May 14, 2014 4:00 pm
- Reply with quote
- Report this post
Hi Gavick Pro, I'm using News2 template with the item image of K2 articles in the item view.
Images from home page or category or article page have a zoom effect to the article itself.
My enquiry is: Is it possible to dissable the lightbox effect for the image shown in the top of the article in the item view?
Thanks
Images from home page or category or article page have a zoom effect to the article itself.
My enquiry is: Is it possible to dissable the lightbox effect for the image shown in the top of the article in the item view?
Thanks
-

- Fresh Boarder
7 posts
• Page 1 of 1
