Keyword

[SOLVED] Remove Lightbox effect on article image

  • Pascal Fendrich
  • Pascal Fendrich's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago - 9 years 5 months ago #134142 by Pascal Fendrich
Remove Lightbox effect on article image was created by Pascal Fendrich
Dear Community,

I got a problem with a lightbox opening when clicking on the K2 article image, for example on the following page:
www.rts-magazin.de.k2515.ims-firmen.de/archiv-fachrecherche/heftarchiv/item/724-ausgabe-01-2014.html

I would like to get completey rid of any lightbox or other effect and simply display the image.

(When the lightbox opens a message "an error occured" appears in the lightbox, but that is another problem).

I have searched the forum and have read
www.joomlaworks.net/forum/k2-en/36563-how-to-disable-lightbox-from-k2#129551
I am not sure weather I have the same problem or if this topic ist talking about something else. I am quite new to Jommla! and especially to K2, so I apologize vor eventually asking a stuid question.

Thanks a lot and best
Pascal
Last edit: 9 years 5 months ago by Pascal Fendrich.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #134169 by Krikor Boghossian
Replied by Krikor Boghossian on topic Remove Lightbox effect on article image
This post will help you with the overrides.

getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

In the item.php file of your overrides, remove this line:
<a class="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>

with:
<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;" />

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Pascal Fendrich
  • Pascal Fendrich's Avatar Topic Author
  • Offline
  • New Member
More
9 years 4 months ago #134314 by Pascal Fendrich
Replied by Pascal Fendrich on topic Remove Lightbox effect on article image
Thank you very much! That was really helpful.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #134339 by Krikor Boghossian
Replied by Krikor Boghossian on topic Remove Lightbox effect on article image
You 're welcome Pascal :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum