PDA

View Full Version : Header Logo in different Languages



Lee Bliss
March 8, 2013, 02:51 PM
Is it possible to place a different Header Logo for each Language or is this option not available yet in the cpanel area?

When you bring out the next version, I understand that we will be able to upload the "Header Logo" through the admin panel, would it be possible to incorporate a "header logo" for each language through the admin area.

I ask this as my logo is in English and would like to show the logo in other languages!

Cheers

Viktor
March 9, 2013, 08:52 AM
Hello Lee Bliss,

Yes it's possible. But you should change some code in ftp.

Go to ftp://templates>>your_template>>tpl>>header.tpl find code:



<a href="{$rlBase}" title="{$config.site_name}">
<img alt="" src="{$rlTplBase}img/{if $smarty.const.RL_LANG_DIR == 'rtl'}rtl/{/if}logo.png" />
</a>


and replace to:



<a href="{$rlBase}" title="{$config.site_name}">
<img alt="" src="{$rlTplBase}img/{if $smarty.const.RL_LANG_DIR == 'rtl'}rtl/{/if}logo_{$smarty.const.RL_LANG_CODE}.png" />
</a>


save and close.

Then go to ftp://tempaltes>>your_template>>img and load logos for all languages with lang code for example: logo_en.png and logo_es.png and logo_fr.png

Lee Bliss
March 9, 2013, 12:28 PM
Hello Lee Bliss,

Yes it's possible. But you should change some code in ftp.

Go to ftp://templates>>your_template>>tpl>>header.tpl find code:



<a href="{$rlBase}" title="{$config.site_name}">
<img alt="" src="{$rlTplBase}img/{if $smarty.const.RL_LANG_DIR == 'rtl'}rtl/{/if}logo.png" />
</a>


and replace to:



<a href="{$rlBase}" title="{$config.site_name}">
<img alt="" src="{$rlTplBase}img/{if $smarty.const.RL_LANG_DIR == 'rtl'}rtl/{/if}logo_{$smarty.const.RL_LANG_CODE}.png" />
</a>


save and close.

Then go to ftp://tempaltes>>your_template>>img and load logos for all languages with lang code for example: logo_en.png and logo_es.png and logo_fr.png

Thanks Victor, Code works well, site looks better with logos in different languages!!

Thanks for the quick response....

Lee Bliss