Change the read more... link in joomla 1.7

Posted on 2011-10-21
Last Modified: 2012-05-12

I wonder if anyone knows how to change the Read more.. link GLOBALLY in joomla 1.7.

My clients want a specific link, but thay wont want to go in and change the article settings every time. There doesnt appear to ber a global option for this text.

Any suggestions?

Question by:Dean OBrien
    LVL 8

    Accepted Solution

    For this you can use the overrides... this will allow you to change the text and even the formatting of the readmore links.. if you just wish to change the text of the readmore link, see further below...

    If it's 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" and "section"

    Then locate the following files


    Copy the files to your template's html folders


    Open these files.
    Nearly at the bottom of these files you should be seeing something like:
    		<p class="readmore">
    				<a href="<?php echo $link; ?>">
    					<?php if (!$params->get('access-view')) :
    						echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
    					elseif ($readmore = $this->item->alternative_readmore) :
    						echo $readmore;
    						if ($params->get('show_readmore_title', 0) != 0) :
    						    echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
    					elseif ($params->get('show_readmore_title', 0) == 0) :
    						echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
    					else :
    						echo JText::_('COM_CONTENT_READ_MORE');
    						echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
    					endif; ?></a>

    Open in new window

    you can change the content of the readmore there, depending on how you'd like to change it..
    try changing
    echo JText::_('COM_CONTENT_READ_MORE');

    Open in new window

    echo JText::_('Learn more...');

    Open in new window

    or whatever text you prefer.

    IF YOU ONLY WANT TO CHANGE THE TEXT OF THE READMORE LINKS, and not the formatting, etc.. open your language file (root/language/en-GB/en-GB.com_content.ini) and replace the values for:

    COM_CONTENT_READ_MORE="
    COM_CONTENT_REGISTER_TO_READ_MORE="Register to read more..."

    LVL 12

    Author Closing Comment

    by:Dean OBrien
    Worked a treat thanks.
    LVL 8

    Expert Comment

    Anytime.. !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Title # Comments Views Activity
    XSLT 5 28
    Hide or Show Images using checkbox array in mysql database 11 219
    Perl 101 11 63
    How to translate path in URL with PHP? 11 28
    There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now