Home Documentation Tutorials Some tricks on changing title, meta tags etc.
|
Some tricks on changing title, meta tags etc. |
|
|
|
Share this page.
|
Written by Rune Rasmussen
|
|
Wednesday, 25 April 2007 23:21 |
|
Site title, meta tags and other text/settings in the configuration.php file (+ other globals in the core ;)) can be overrided in the core language files (located in ../language/).
First you should ensure that your template's index.php file have the line
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo _LANGUAGE; ?>"
xml:lang="<?php echo _LANGUAGE; ?>">
- who tells browsers and search engines which language to read, t.ex. useful to get the different languages indexed by Google.
eg. The top of your index should look something like:
<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo _LANGUAGE; ?>"
xml:lang="<?php echo _LANGUAGE; ?>">
<head>
$mosConfig_sitename = 'Your site title in other language..';
$mosConfig_MetaDesc = 'Your description in other language..';
$mosConfig_MetaKeys = 'Your meta keys in other language..';
You can also make {language}.override.php files (t.ex english.override.php) and upload them to your language folder.
Nice to avoid overwriting your customizations if the core language files changes, as they will in Joomla! 1.0.12 t.ex.
Then you just need to add an if query in the core language files:
if(file_exists($mosConfig_absolute_path.'/language/'.$mosConfig_lang.'.override.php'))
require_once($mosConfig_absolute_path.'/language/'.$mosConfig_lang.'.override.php');
Tested and working on Joomla! 1.0.12 and Joom!Fish 1.7
Please Note!There can be some issues with site titles on some 3.pd. components where it's not translated.
|
|
|
Joom!Fish 2.0 RC1 Public Release
Joom!Fish 2.0 RC1 will be available to the public after
Selected Contributors
From the Joom!Fish Core team (Alex, Geraint, Ivo & Robin) a big thank you to all the people of the JoomFish community!
Special thank's for testing, good suggestions, translations and forum moderation to:
- Tommy White for the cute logo design
- Bernhard, Michael, Luc, Olivier, Robin, Rune, Akarawuth
- Harri <aka tassu> for moderation
|
0 Comments