- Posts: 438
COMMUNITY FORUM
Custom Read More Link Text
- Joe Campbell
- Topic Author
- Offline
- Platinum Member
Less
More
9 years 11 months ago #132805
by Joe Campbell
Custom Read More Link Text was created by Joe Campbell
How can I create custom "Read More" link text for each category?
For Example:
Blog > Read More
K2Store > View Options
Directory > Full Details
For Example:
Blog > Read More
K2Store > View Options
Directory > Full Details
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 11 months ago #132806
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Custom Read More Link Text
First of all read this post. it will help a lot
nuevvo.com/blog/item/84-k2-inheritance-sub-templating
You need three new template overrides containing only the category_item.php file.
Once you have created them and assigned them you need to change this line of code and replace K2_READ_MORE with your language string.
Repeat this task for each template.
nuevvo.com/blog/item/84-k2-inheritance-sub-templating
You need three new template overrides containing only the category_item.php file.
Once you have created them and assigned them you need to change this line of code and replace K2_READ_MORE with your language string.
<?php if ($this->item->params->get('catItemReadMore')): ?>
<!-- Item "read more..." link -->
<div class="catItemReadMore">
<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
<?php echo JText::_('K2_READ_MORE'); ?>
</a>
</div>
<?php endif; ?>
Repeat this task for each template.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Joe Campbell
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 438
9 years 11 months ago #132807
by Joe Campbell
Replied by Joe Campbell on topic Re: Custom Read More Link Text
Thank you
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 11 months ago #132808
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Custom Read More Link Text
You 're welcome Joe
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.