Installed language pack - header not displaying well
Not sure if this is the right area for this question...
I have just installed a language pack (Japanese) on my test site <http://english.globalpeace.jp/store/>.
I am not sure why, but the header logo is messed up... I get the words ‘FAVICON CODE’ in the top LH corner and the liquid center section is out of whack...
I don’t understand why it is messed up as all I did was install language packs... When I click on the English button, it appears to work fine.
Can anyone help out with this?
Thanks!
Re: Installed language pack - header not displaying well
I have just tested things on Internet Explorer (Win), FireFox (Win & Mac) and Opera (Mac) and all display the same problem. However in Safari, everything displays fine...
Re: Installed language pack - header not displaying well
FAVICON CODE
This is defined in the /includes/languages/english/meta_tags.php
Chances are your japanese language pack is not fully current, so is missing this and other definitions.
Re: Installed language pack - header not displaying well
Yes, it is a pre-release version for 1.3... Would that be causing the liquid area of the header to scrunch up too?
Re: Installed language pack - header not displaying well
Yes.
Your custom code in templates/common/html_header.php is not finding a japanese definition for FAVICON_CODE.
The display of FAVICON_CODE text on the screen is pushing the line down by the same distance as the text.
Your favicon modifications are not the same as what is in a standard v1.3.x installation:
html_header.php is normally this:
PHP Code:
<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>
and the contents of FAVICON are defined in languages/YOURLANGUAGE/meta_tags.php:
PHP Code:
// favicon setting
// There is usually NO need to enable this unless you wish to specify a path and/or a different filename
// define('FAVICON','favicon.ico');
(And you would uncomment that last line and enter the full path to your favicon.ico file to customize it, as you have currently done for your site)
Re: Installed language pack - header not displaying well
Thank you very much! The header is looking very good!
I opened the Japanese meta_tags.php and added the favicon code from English meta_tags.php in the appropriate place...
Re: Installed language pack - header not displaying well
Note for users that may be experiencing similar problems:
I was upgrading and added a new version of includes/languages/my_template01/japanese.php recently and the problem above occurred again. I found this thread again and began messing around with meta_tags.php but could not get it working.
After much messing around I realized I needed to copy, this piece of favicon code into the J version of includes/languages/my_template01/japanese.php:
//define('CUSTOM_KEYWORDS',DVD’s , Books ');
// Favicon
define('FAVICON_CODE','<link rel="icon" href="http://MY_URL.../favicon.png" type="image/x-icon" />'.
'<link rel="shortcut icon" href="http://MY_URL/favicon.png" type="image/x-icon" />');
// END: moved to meta_tags.php
**********