Keyword

Making Item Images non-clickable

  • Lefteris
  • Lefteris's Avatar Topic Author
  • Offline
  • Moderator
More
14 years 9 months ago #76591 by Lefteris
Making Item Images non-clickable was created by Lefteris
I'm adding images to K2 items. When the item is displayed to a user, the image is clickable. I would like the images to display but not to be clickable and I can't find a parameter that will change this. Does this need to be done in the K2 template?

Caron

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

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

More
13 years 6 months ago #76592 by Ed H..
Replied by Ed H.. on topic Making Item Images non-clickable
Ever get an answer for this? Oddly enough I'd like to have this feature also.

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

More
13 years 6 months ago #76593 by Olivier Karfis
Replied by Olivier Karfis on topic Making Item Images non-clickable
Hi.

It has to be done in the template (make sure you use overides).  

In your item.php look for the following around line 205, then take out the link (just keep the <img> tag and take out the <a> tag

--Olivier


 <!-- Item Image -->

  <div class="itemImageBlock">

  <span class="itemImage">

  <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Click to preview image'); ?>">

  <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />

  </a>

  </span>

 

 

Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com

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

More
13 years 6 months ago #76594 by Ed H..
Replied by Ed H.. on topic Making Item Images non-clickable
Awesome! Thanks!!!!

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

  • Lefteris
  • Lefteris's Avatar Topic Author
  • Offline
  • Moderator
More
13 years 6 months ago #76595 by Lefteris
Replied by Lefteris on topic Making Item Images non-clickable
that's great - very helpful; thanks!

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