- Posts: 5
COMMUNITY FORUM
how to remove the link from a picture
- Michael Groen
-
Topic Author
- Offline
- New Member
Less
More
11 years 1 month ago #126132
by Michael Groen
how to remove the link from a picture was created by Michael Groen
Dear All,
I have categories where the text/info is displayed by clicking on "weiter lesen" ( which means "read more"), as well as when clicking on pictures. I would like to know how to deactivate/remove permantly this link feature of the pictures.
Here is an example
kundenlogin.dein-set.de/index.php/kundenbereich
Thanks in advance,
I have categories where the text/info is displayed by clicking on "weiter lesen" ( which means "read more"), as well as when clicking on pictures. I would like to know how to deactivate/remove permantly this link feature of the pictures.
Here is an example
kundenlogin.dein-set.de/index.php/kundenbereich
Thanks in advance,
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month ago #126133
by Lefteris
Replied by Lefteris on topic Re: how to remove the link from a picture
Hi. First you need to override category_item.php. Details at getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates . The you can remove the a tag that surrounds the image tag at line 117.
Please Log in or Create an account to join the conversation.
- Michael Groen
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
11 years 1 month ago - 11 years 1 month ago #126134
by Michael Groen
Replied by Michael Groen on topic Re: how to remove the link from a picture
Hi, thx...
ok, line 117 but is the name ?
tag.php
ok, line 117 but is the name ?
tag.php
Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month ago #126135
by Lefteris
Replied by Lefteris on topic Re: how to remove the link from a picture
it depends on the page you want to apply the changes. In any case you need to remove the a tag. Example for category_item.php:
If you don't know how to do it, hire a developer to help you.
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
<!-- Item Image -->
<div class="catItemImageBlock">
<span class="catItemImage">
<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;" />
</span>
<div class="clr"></div>
</div>
<?php endif; ?>
If you don't know how to do it, hire a developer to help you.
Please Log in or Create an account to join the conversation.