- Posts: 8743
COMMUNITY FORUM
Making Item Images non-clickable
- Lefteris
-
Topic Author
- Offline
- Moderator
Less
More
15 years 4 months ago #76591
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
Caron
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Ed H..
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 1 month 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.
- Olivier Karfis
-
- Offline
- Elite Member
14 years 1 month ago #76593
by Olivier Karfis
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
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>
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.
- Ed H..
-
- Offline
- New Member
Less
More
- Posts: 3
14 years 1 month 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
-
Topic Author
- Offline
- Moderator
Less
More
- Posts: 8743
14 years 1 month ago #76595
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.