WordPress.org

Ready to get started?Download WordPress

Forums

Switch writing mode based on detected language? (1 post)

  1. lizzmo
    Member
    Posted 2 years ago #

    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: http://occa-art.com/cai-yuan/biography/

    any help would be much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic