- Posts: 73
COMMUNITY FORUM
[SOLVED] Disable image preview in item?
- Filip Nikitovic
- Topic Author
- Offline
- Senior Member
Less
More
11 years 4 months ago #114169
by Filip Nikitovic
[SOLVED] Disable image preview in item? was created by Filip Nikitovic
Hi is there a way to disable image preview in item when You click on it?
Please Log in or Create an account to join the conversation.
- skise
- Offline
- New Member
Less
More
- Posts: 7
11 years 4 months ago #114170
by skise
Replied by skise on topic Re: Disable image preview in item?
Just found this and tried it as I had the same problem
getk2.org/community/New-to-K2-Ask-here-first/150513-Disable-the-link-on-item-image
Found that it worked
getk2.org/community/New-to-K2-Ask-here-first/150513-Disable-the-link-on-item-image
Found that it worked
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 73
11 years 4 months ago - 11 years 4 months ago #114171
by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Disable image preview in item?
I belive this did help but that post is 2.5 years old.
So code is different now and I cant find what is needed to remove from item.php.
They are talking about removing code from line 208 - 210.
I tried doing so and it did remove link from image but image is set to left,its not positioned in the middle so thats problem.
Any advice?
So code is different now and I cant find what is needed to remove from item.php.
They are talking about removing code from line 208 - 210.
I tried doing so and it did remove link from image but image is set to left,its not positioned in the middle so thats problem.
Any advice?
Please Log in or Create an account to join the conversation.
- skise
- Offline
- New Member
Less
More
- Posts: 7
11 years 4 months ago #114172
by skise
Replied by skise on topic Re: Disable image preview in item?
What I did at line (from memory) 209 to 210 is as below
<!-- <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>"> -->
The <!-- at the front of the code and the --> at the end of the code disables this code from being acted on.
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
Remember if there is an update this code will be overwritten hence I have saved it in a text document for future reference
Clear you cache after wards and test
<!-- <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>"> -->
The <!-- at the front of the code and the --> at the end of the code disables this code from being acted on.
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
Remember if there is an update this code will be overwritten hence I have saved it in a text document for future reference
Clear you cache after wards and test
Please Log in or Create an account to join the conversation.
- Filip Nikitovic
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 73
11 years 4 months ago #114173
by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: [SOLVED] Disable image preview in item?
Thanks.
I commented out line 210 as You told me and everything is ok.
I commented out line 210 as You told me and everything is ok.
Please Log in or Create an account to join the conversation.