Modifying Read More links
A question was posted in the Joomla! New England forum about getting rid of the titles from the read more links generated by the Beez template overrides. Here is how I responded:
The Beez template was designed for accessibility.
It is an accessibility No-No to have multiple links on the same page with the same text that point to different urls — so…
the Beez template overrides pull in the article title, creating unique links to the various articles.
The simplest way to get rid of this feature (not a bug!) would be to change the name of the override file in the html folder. — If the file name is not exactly what Joomla is expecting, it won’t see it and will use the standard html instead.
The files governing the coding of a blog entry would be in
html/com_content/category/blog_item.php and
html/com_content/section/blog_item.php
If there are other aspects of the beez override you like (tableless code, for example) but you really want the simple ( but repetitive) read more links, you could make a copy of these files and alter the php to omit the article title.
Look around line 113 in the category/blog_item.php and you’ll see this:
elseif ($readmore = $this->item->params->get('readmore')) :
echo $readmore;
else :
echo JText::sprintf('Read more', $this->escape($this->item->title));
endif; ?>
The first instance checks for a custom (item by item) readmore you may have entered, the second is the “default”.
You can change (‘Read more’, $this->escape($this->item->title))
to (‘more’) or whatever you want it to say.
Also see my earlier post about different read more links for different sections of your site.
Tags: accessibility, Joomla!, template overrides