Jump to content

Code to enable Right To Left alignment

Recommended Posts

Posted

Hi everyone,

I am currently working on a website in Arabic and have come across a few problems along the way XD.

One of which was that Squarespace does not support Right-To-Left text feature. So when I pasted in the Arabic text, all of the punctuation was automatically formatted and moved to the right hand side - messing up the flow of the sentence by putting full stops in the middle of a sentence and not ending the sentences with punctuation.

I contacted Squarespace customer service but they couldn't help me with code. And I couldn't find anything on here either... SO I thought, I'd post this here just in case anyone else had this problem.

Sim

I will answer below:

  • Replies 1
  • Views 5.8k
  • Created
  • Last Reply
Posted

All you have to do is instead of creating a text block, create a MARKDOWN (see screenshot), then paste in this code:


<div dir="rtl">

Then write/paste in your text.

This should now enable Right-To-Left alignment.

Hope it helps/works :)

screen-shot-2017-06-03-at-185406.png.77b1056b5dddfb4514b4a161e86f5bbc.png

Posted

Thank you so much for that @octopus! :D

Half of my website is in English! That's why I had to do it the long way, but thank you for the code, I will use it another time I'm sure :)

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.