Keyword

how to remove the link from a picture

  • Michael Groen
  • Michael Groen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months 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,

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

More
10 years 6 months 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.

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

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

  • Michael Groen
  • Michael Groen's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago - 10 years 6 months 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
Log in  or Create an account to join the conversation.

More
10 years 6 months 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:
 <?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.

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

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