Right-to-left text

Some languages, such as Arabic, are read from right to left rather than left to right. This site uses the HTML dir global attribute to set right-to-left layout on pages identified as Arabic using JavaScript to detect the presence of /ar/ in the url path. The page language is defined using the HTML lang global attribute, and the correct dir value is applied accordingly.

Editing pages with right-to-left text enabled

Squarespace’s Fluid Engine, used to edit content on Squarespace 7.1, does not function correctly when the text direction is set to RTL. This prevents content blocks from placed accurately on Arabic pages.

The JavaScript below disables RTL text when a page is viewed in edit mode. When designing pages, be aware that images and text will appear LTR in the editor but will display correctly RTL on the live site.