Skip to main content

RTL when translating to Arabic with TranslatePress

Comments

2 comments

  • Ariel H.

    Hi Kristoffer,

    Thank you for reaching out.

    Please try adding the following CSS and see if this helps:

    /* Force RTL layout when Arabic is active */
    body.rtl {
        direction: rtl !important;
        text-align: right !important;
    }

    /* Fix Brizy text alignment */
    body.rtl .brz-rich-text,
    body.rtl .brz-rich-text p,
    body.rtl .brz-rich-text div,
    body.rtl .brz-rich-text span,
    body.rtl .brz-rich-text li {
        direction: rtl !important;
        text-align: right !important;
        text-align-last: right !important;
    }

    /* Prevent justified text */
    body.rtl .brz-rich-text * {
        text-align: right !important;
    }

    /* Ensure sections and rows follow RTL */
    body.rtl .brz-section,
    body.rtl .brz-row,
    body.rtl .brz-column {
        direction: rtl !important;
    }

    You can add this in WordPress by going to Dashboard > Appearance > Customize > Additional CSS, paste the code there, and click Publish.

    This will ensure Brizy text automatically aligns to the right when Arabic (RTL) is active without needing to change each text element.

    Best regards,  
    Ariel H.

    0
  • Kristoffer Ohrn

    Thank you, works great!

    0

Please sign in to leave a comment.