Joomla 2.5 · Joomla Tutorials

Joomla 2.5 – How to Change the text “Close Info” and “Open Info”

Joomla 2.5 - Change Close Info text in Template
Joomla 2.5 - Change Close Info text in Template

This post is in response to a comment left by Farbrico on one of my older posts – “How to Remove the Close and Open info buttons“.   This Joomla 2.5 tutorial will answer his question on how to change the “Close Info” and “Open Info” string or text to other words.  Although this might not be the best way to alter the string because you will lose the changes when you perform an Joomla software or Template upgrade.  The changes that you need to make are made in the language file on the file server.

For example – I changed my “Close Info” and “Open Info” Text to:

  • “Close Info” Change to “Collapse”
  • “Open Info” Change to “Expand”

Overview of the steps:

  • Access files using your FTP Manager or telnet into your file server
  • Change to Language Directory & Edit template language file
  • Change the “Close Info” and “Open Info” text

Steps:

1.  Access files using your FTP Manager or telnet into your file server

  • You will need to access your files through your FTP Manager or if you can use a TELNET or SSH session, go ahead and do that.  If you have a File Manager in your Control panel, that would be good too.

2.  Change to Language Directory & Edit File

All text is managed in your Language directory.  There are language files for almost everything in your Joomla website.  You will need to search for your template language file.

For example: My language is English and I’m editing my BEEZ_5 default template.

  • Change Directory:
    • joomlawebsitedirecotry/language/en-GB
  • If you are using Beez5, edit the file:
    • en-GB.tpl_beez5.ini
  • If you are using Beez20, edit the file:
    • en-GB.tpl_beez_20.ini

3.  Change the “Close Info” and “Open Info” text

All the Beez templates have relatively the same language files.    Here you can change the text to whatever you want the “Close Info” and “Open Info” text to be.  For example, I’m changing mine to “Expand” and “Collapse”.

Joomla 2.5 - Change Close Info and Open Info text in Template
3. Joomla 2.5 - Change Close Info and Open Info text in Template

If you are using Beez_5 Template:

  • Search for the following text:

TPL_BEEZ5_TEXTRIGHTCLOSE=”Close info”
TPL_BEEZ5_TEXTRIGHTOPEN=”Open info”

 

  • Replace with code in red:

;;; Modified May 31, 2012 by Elaine @ CmsMind.com to Modify Close Info and Open Info text.
;;; START CHANGE
; TPL_BEEZ5_TEXTRIGHTCLOSE=”Close info”
; TPL_BEEZ5_TEXTRIGHTOPEN=”Open info”
TPL_BEEZ5_TEXTRIGHTCLOSE=”Collapse”
TPL_BEEZ5_TEXTRIGHTOPEN=”Expand”
;;; END CHANGE

If you are using Beez_20 Template:
  • Search for the following text:

TPL_BEEZ2_TEXTRIGHTCLOSE=”Close info”
TPL_BEEZ2_TEXTRIGHTOPEN=”Open info”

  • Replace with code in red:

;;; Modified May 31, 2012 by Elaine @ CmsMind.com to Modify Close Info and Open Info text.
;;; START CHANGE
; TPL_BEEZ2_TEXTRIGHTCLOSE=”Close info”
; TPL_BEEZ2_TEXTRIGHTOPEN=”Open info”
TPL_BEEZ2_TEXTRIGHTCLOSE=”Collapse”
TPL_BEEZ2_TEXTRIGHTOPEN=”Expand”
;;; END CHANGE

Save your file and refresh your Joomla 2.5 website.  You should see that the “Close Info” and “Open Info” text are changed to the text entered in Step 3.

Hope that helps,

Elaine

One thought on “Joomla 2.5 – How to Change the text “Close Info” and “Open Info”

  1. Hi Elaine,
    I just gave this a go and it has worked. Thanks for that. The text is now in three lines and overlapping the module. Do you have a fix for this please. This is what I placed in the en-GB.tpl

    ;;; Modified May 31, 2012 by simonolley @ mac.com to Modify Close Info and Open Info text.
    ;;; START CHANGE
    ; TPL_BEEZ5_TEXTRIGHTCLOSE=”Close info”
    ; TPL_BEEZ5_TEXTRIGHTOPEN=”Open info”
    TPL_BEEZ5_TEXTRIGHTCLOSE=”Close conservation dates”
    TPL_BEEZ5_TEXTRIGHTOPEN=”Open conservation dates”
    ;;; END CHANGE

    Best,

    Simon

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Captcha Reload