Switch writing mode based on detected language?
-
I’m new to wordpress and not a php expert so I’m having some trouble trying to write a code that will detect if the page is in Chinese and if so make the writing mode vertical right to left. I’m using qtranslate to switch between english and chinese. Heres some of my code from the header:
<?php if(qtrans_getLanguage()=='zh'): ?> <style type="text/css"> #content, #nav { writing-mode: vertical-rl; } </style> <?php endif; ?>
and the site: https://occa-art.com/cai-yuan/biography/
any help would be much appreciated!
- The topic ‘Switch writing mode based on detected language?’ is closed to new replies.