Keyword

How to remove "read more" button from K2 item

  • Michael
  • Michael 's Avatar Topic Author
  • Offline
  • New Member
More
11 years 5 months ago - 11 years 5 months ago #112233 by Michael
I want to remove the "read more" button on my K2 landing page. I already changed the language for the "read more" button but i want to remove it completly.
I already made some changes to the file /components/com_k2/templates/default/category_item.php but wasn't able to hide the button.

Michael Luteijn

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

More
11 years 5 months ago #112234 by Wouter
Hello,

First of all:

/components/com_k2/templates/default/category_item.php

to
/templates/[your_template]/html/com_k2/default/category_item.php

NEVER MAKE HACKS TO THE CORE FILES!

If you ever update your website, it could overwrite these files and you need to make those changes again!

Open the file and find the following rules:
Log in  or Create an account to join the conversation.

  • Michael
  • Michael 's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 months ago #112235 by Michael
I tried the solution but the button still remains. Any othe solutions?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago #112236 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: How to remove "read more" button from K2 item
Then there is either a 3rd party extension that is 'blocking' the default template hierarchy and overrding (such as a templating framework) or you accidentally edited the wrong file.

For more info on overriding please read this post -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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

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