Jump to content

One CSS per language


Recommended Posts

Hello everybody,

How can i call a specific css according to what language is specified?

Is there a way to call a language specific CSS from the back office?

Or to add a class o an ID some where in the code, so that css rules can be filtered by language?

Thank you so much

Link to comment
Share on other sites

In header.tpl remove the standard stylesheet and add something like this

 <!-- if language is equal to EN add this -->
{if $lang_iso == en}{include file=$tpl_dir./path-to-css-file.css}{/if}
 <!-- if language is equal to DE add this -->            
{if $lang_iso == de}{include file=$tpl_dir./path-to-css-file.css}{/if}
 <!-- if language is equal to ES add this -->            
{if $lang_iso == es}{include file=$tpl_dir./path-to-css-file.css}{/if}



It should work?

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...