Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
SimonaZ7

Code to enable Right To Left alignment

Question

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:

Edited by SimonaZ7
Initial Revision

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

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

Edited by SimonaZ7
Initial Revision

Share this post


Link to post
  • 0

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 :)

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...