Jump to content

Different font for different language?


Recommended Posts

Hi all

 

Wondering if it's possible to change font depending on the language selected for the front office?

 

I am offering my site in Russian but the text for the translated menu means that the current font size will not be suitable.

 

I need to use a smaller font for the menu on the Russian version of my site. Is this possible?

 

Thanks in advance!

  • Like 1
Link to comment
Share on other sites

I solved this.

 

I was using TM Categories mod for the menu and used this code:

 

 

<div id="tmcategories">

{if $lang_iso == "ru"}<ul id='ru_cat' class='sf-menu'>{elseif $lang_iso == "en"}<ul id="cat" class="sf-menu">{/if}

{foreach from=$blockCategTree.children item=child name=blockCategTree}

 

{if $smarty.foreach.blockCategTree.last}

 

{include file="$branche_tpl_path" node=$child last='true'}

{else}

{include file="$branche_tpl_path" node=$child}

{/if}

{/foreach}

</ul>

</div>

 

It changes the style depending on language iso code. Just configure the css in your applicable theme stylesheet.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...