- Posts: 80
COMMUNITY FORUM
Need to change 'read more' text to button
- Chris Hogan
- Topic Author
- Offline
- Premium Member
Less
More
7 years 7 months ago - 7 years 7 months ago #160407
by Chris Hogan
Need to change 'read more' text to button was created by Chris Hogan
Hi there,
I have searched everywhere for this issue I have and I'm no closer to finding an answer.
There are a couple of queries like this but I cannot find how to make this change!
Is there any way to change the Read More...text link - to a Button??
PS: It used to show up on standard Joomla articles
Thanks in advance!
Site: ourdogsinternational.com
I have searched everywhere for this issue I have and I'm no closer to finding an answer.
There are a couple of queries like this but I cannot find how to make this change!
Is there any way to change the Read More...text link - to a Button??
PS: It used to show up on standard Joomla articles
Thanks in advance!
Site: ourdogsinternational.com
Last edit: 7 years 7 months ago by Chris Hogan.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 7 months ago #160449
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Need to change 'read more' text to button
Hello,
You can use Joomla!'s language overrides.
docs.joomla.org/J3.x:Language_Overrides_in_Joomla
The language string is K2_READ_MORE
You can use Joomla!'s language overrides.
docs.joomla.org/J3.x:Language_Overrides_in_Joomla
The language string is K2_READ_MORE
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris Hogan
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 80
7 years 7 months ago #160512
by Chris Hogan
Replied by Chris Hogan on topic Need to change 'read more' text to button
Hi there,
Thanks but I did previously try this method although, I don't need to change the text....I need to change the text in to a <button>!
Please advise.
Chris.
Thanks but I did previously try this method although, I don't need to change the text....I need to change the text in to a <button>!
Please advise.
Chris.
Please Log in or Create an account to join the conversation.
- Fábio Jordan
- Offline
- Senior Member
- Nothing like a good coffee to make a better web
7 years 7 months ago #160523
by Fábio Jordan
Replied by Fábio Jordan on topic Need to change 'read more' text to button
Hi.
If you want to change the text into a button, you should go to:
"template/mytemplate/html/mod_k2_content/customfolder/default.php"
Where "customfolder" should be a custom template, don't edit the Default, ok?
Now, find this:
<?php if($params->get('itemReadMore') && $item->fulltext): ?>
<a class="moduleItemReadMore" href="<?php echo $item->link; ?>"> <?php echo JText::_('K2_READ_MORE'); ?> </a>
<?php endif; ?>
The second line above it's the link you want to edit into a button.
Best luck!
If you want to change the text into a button, you should go to:
"template/mytemplate/html/mod_k2_content/customfolder/default.php"
Where "customfolder" should be a custom template, don't edit the Default, ok?
Now, find this:
<?php if($params->get('itemReadMore') && $item->fulltext): ?>
<a class="moduleItemReadMore" href="<?php echo $item->link; ?>"> <?php echo JText::_('K2_READ_MORE'); ?> </a>
<?php endif; ?>
The second line above it's the link you want to edit into a button.
Best luck!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 7 months ago #160542
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Need to change 'read more' text to button
The same method can be applied to the other lists (component).
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
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.