lucwebsite Posted March 14, 2011 Share Posted March 14, 2011 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 More sharing options...
WDSY Posted March 17, 2011 Share Posted March 17, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now