Codex tools: Log in
Adding support for language written in a Right-To-Left (RTL) direction is easy - it's just a matter of overwriting all the horizontal positioning attributes of your CSS stylesheet in a separate stylesheet file named rtl.css.
direction: rtl; unicode-bidi: embed;
text-align: left; float: right; clear: left;
becomes
text-align: right; float: left; clear: right;
Some images are clearly suited only for one direction (arrows for example). Create a horizontally flipped version of those images.
.commentslink{
background:url("./images/comments.gif") no-repeat 0 3px;
padding-left:15px;
margin: 2px 4px 0px 12px;
left: 10px;
}
becomes
.commentslink{
background:url("./images/comments-rtl.gif") no-repeat 100% 3px;
padding-left:0;
padding-right:15px;
margin: 2px 12px 0px 4px;
left:auto;
right:10px;
}
The RTL Tester plugin allows you to easily switch the text direction of the site: http://wordpress.org/extend/plugins/rtl-tester/
P.S. This plugin allows to VIEW ONLY RTL. i.e. How would your site look like when its Text Direction is changed & this change isn't viewed by the viewers, (unless the whole CSS is changed).