How to add an article title to the “Read more…” link?
For this you can use the overrides…
If they are not already there, in your template folder: create a new folder called ‘html’.
In that folder you create a folder called ‘com_content’.
And in that folder you create the folders called “category”, “frontpage”, “section”
Then locate the following files
- (joomla)/components/com_content/views/category/tmpl/blog_item.php
- (joomla)/components/com_content/views/frontpage/tmpl/default_item.php
- (joomla)/components/com_content/views/section/tmpl/blog_item.php
Copy the files to your template’s html folders
- (yourtemplate)/html/com_content/category/blog_item.php
- (yourtemplate)/html/com_content/frontpage/default_item.php
- (yourtemplate)/html/com_content/section/blog_item.php
Open these files.
Nearly at the bottom of these files you should be seeing something like:
<a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>">
<?php if ($this->item->readmore_register) :
echo JText::_('Register to read more...');
elseif ($readmore = $this->item->params->get('readmore')) :
echo $readmore;
else :
echo JText::sprintf('Read more...');
endif; ?></a>
Change the line
echo JText::sprintf('Read more...');
into
echo JText::sprintf('Read more', $this->item->title);
The “Read more” link should now look like this: Read more: (Article title)
Similar Articles
- General Questions/New to Joomla • Re: Login Form Below Content
Interesting. I'm not sure why that register link refuses to use SEF urls.Anyway, I don't know too much about Kunena. But you could try doing a template override on the Login Module (modules/mod_login/... - lgy1970 on "how to load home page from my domain name"
Thanks Voodoo
I've been reading the link you posted very carefully. You say its simple, some parts seem simple, but other parts look dangerous.
Yes my wordpress is in domain.com.au/blog
I want to move... - Ja purity template left
The original JA Purity template was provided from JoomlArt.com as a zip but the latest files have been installed along with Joomla. The relevant files, index.php, template.css and bullet.gif, are in t... - General Questions/New to Joomla • Re: Remove icon prob not in Global Config not in Article Man
signs wrote:I found this:Code:<?php if (($this->params->get('show_author')) && ($this->article->author != "")) : ?><?php ob_start(); ?><?php echo JHTML::_(... - Superb Wordpress Hacks
Although Wordpress is the software to make blog but it is used in many professional website like personal, portfolio, e-commerce and also used as CMS nowadays. Developers and designers are frequently ... - WordPress SEO: The Definitive Guide To Higher Rankings For Your Blog
1. Basic technical optimization
Out of the box, WordPress is a pretty well optimized system, and does a far better job at allowing every single page to be indexed than every other CMS I have used.... - Why Won’t Google Index my Blog?
Well, Google does index my blog.. But, more and more, I am hearing that this is not the case for others, and probably not yours if you are reading this. Example. A colleague of mine runs an outstand... - manrock111 on "/wp-content/gt-cache/ do I need?"
thanks samuel, please also tell me as gt-cache, 'cache' folder also important? i once user super cache plugin but remove that long time ago.
Do i need cache folder in content folder?
... - kimboisnumber1 on "Changed Primary Domain, Site No Longer Loading Correctly"
Earlier this evening I changed my primary domain, http://www.uvkittyshop.com to http://www.uvkitty.com. I should mention that my wordpress files were located at uvkittyshop.com/blog/, but set as the h... - applesfaceman on "table border =0 but it still shows up"
Hi, I would like to simply make it so, as i specify table properties through html, in the post, that the table takes on what i have in the html in the post, right now i insert
<table width="57%" b...