WordPress.org

Ready to get started?Download WordPress

Forums

Two languages site (3 posts)

  1. Gal Hadad
    Member
    Posted 4 years ago #

    Does anyone know if there is a way to make a two languages site in wordpress, with a plugin or in another way?
    I want to make a site that will be both in Hebrew and in English, its important to note that I will have to use two different themes, as in hebrew you need to write from Right-To-Left.. I have an Idea on how to manually do it, but I was wondering maybe if someone here knows a plugin or a way, that can make my life easier...

  2. nouveller
    Member
    Posted 4 years ago #

    Yes, use this plugin: http://wpml.org/ I've used it to build a six language site and it's perfect.

    Changing the text direction with WPML.

    In you body tag you can add. The he might not be the correct two letter langauge code but you can get the idea.

    ICL_LANGUAGE_CODE is a constant defined by the WMPL plugin for the current langauge.

    <body <?php if(ICL_LANGUAGE_CODE == 'he') { echo 'class="hebrew"'; } ?> >

    Then in your CSS.

    body.hebrew { direction: rtl; }

  3. Gal Hadad
    Member
    Posted 4 years ago #

    thank you

Topic Closed

This topic has been closed to new replies.

About this Topic