Support » Theme: Tiny Forge » RTL option ?

Viewing 1 replies (of 1 total)
  • Theme Author Tomas Mackevicius


    Hi, in order to activate RTL option, you have to activate the language file that is RTL.

    At this time Tiny Forge doesn’t have native language file for all languages, bus you can successfully use Twenty Twelve language files. Get your language file:

    and put it in the folder “languages”.

    Then activate your language:

    [ Signature moderated. ]

    Some background info:

    Displaying the Site in RTL and LTR

    Now that your content is translated, it’s time to move our attention to the theme.

    This little line does most of the magic:

    <html dir="rtl" lang="he-IL">

    You can see if it you view the source of any Hebrew page. For example, the home page.

    The dir=”rtl” attribute tells the site that the display direction for the entire site is Right to Left. Browsers understand it and will flip everything to right direction.

    This single PHP line, from header.php, makes it happen:

    <html <?php language_attributes(); ?>>

    The call to language_attributes inserts the dir and lang attributes. The values come from the core .mo file. If you have the correct .mo files for WordPress, you get the correct values for these attributes.

    If your theme’s HTML and CSS follow ‘safe’ practices, this is really all you need. By safe, I mean no absolute positioning or widths. If you must use absolutes, you may consider loading different CSS per language.


Viewing 1 replies (of 1 total)
  • The topic ‘RTL option ?’ is closed to new replies.