Hello,
In multilingual store, how can we set a font type for a specific language?
Thanks
Hello,
In multilingual store, how can we set a font type for a specific language?
Thanks
For example, you can add to the footer custom HTML block with SMARTY support and following code
{if $smarty.const.CART_LANGUAGE == 'en'} ... customer styles here (fonts, colors, etc).... {/if}
For example, you can add to the footer custom HTML block with SMARTY support and following code
{if $smarty.const.CART_LANGUAGE == 'en'} ... customer styles here (fonts, colors, etc).... {/if}
Many thanks ..
I created a new block in the Default Layout in the footer section as following but it did not work with me
{if $smarty.const.CART_LANGUAGE == 'ar'} @import url('https://fonts.googleapis.com/css?family=Cairo'); *{ font-family: 'Cairo', sans-serif; } {/if}
At first check source code and check if new content is displayed
At first check source code and check if new content is displayed
Yes, when I add a plain text it is shown in the text ..
Yes, when I add a plain text it is shown in the text ..
Try to add
{$smarty.const.CART_LANGUAGE|fn_print_r}
do you receive the 'ar' result?
Hi,
Many thanks for your great help;
I just checked the check box "Apply to all languages" and i did work with me .. thanks alot..
You are welcome! :)
{if $smarty.const.CART_LANGUAGE == 'en'}
... customer styles here (fonts, colors, etc)....
style>
{/if}
What question do you have?
The Best way to do that :
{if $smarty.const.CART_LANGUAGE == 'en'} [lang="en"] .yourclass { display: none; } {/if}
Enjoy !
The Best way to do that :
{if $smarty.const.CART_LANGUAGE == 'en'} [lang="en"] .yourclass { display: none; } {/if}Enjoy !
Is this will be applied for the whole website?