If you want to change the “Read more” link with the title of the article, you have to override the template.
For this, in your template folder:
- Create a new folder called ‘html’.
- Within that folder you create a new folder called ‘com_content’.
- In the newly created folder you create another folders named “category”, “frontpage” and “article”
Then copy the following files:
- (joomla)/components/com_content/views/category/tmpl/blog_item.php
- (joomla)/components/com_content/views/featured/tmpl/default_item.php
- (joomla)/components/com_content/views/article/tmpl/default.php
to their respective locations in the new template’s html file:
- (yourtemplate)/html/com_content/category/blog_item.php
- (yourtemplate)/html/com_content/featured/default_item.php
- (yourtemplate)/html/com_content/article/default.php
Open these files. Towards the bottom of each of these files you should see something like:
Change the line
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
with
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE', $this->item->title);
The “Read more” link should now look like this: Read more: (Article title)
Source: joomla.org
Leave a Reply