- Posts: 2
COMMUNITY FORUM
How to remove "read more" button from K2 item
- Michael
- Topic Author
- Offline
- New Member
Less
More
11 years 5 months ago - 11 years 5 months ago #112233
by Michael
How to remove "read more" button from K2 item was created 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
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.
- Wouter
- Offline
- New Member
Less
More
- Posts: 12
11 years 5 months ago #112234
by Wouter
Replied by Wouter on topic Re: How to remove "read more" button from K2 item
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:
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
11 years 3 months ago #112235
by Michael
Replied by Michael on topic Re: How to remove "read more" button from K2 item
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 3 months ago #112236
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
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.