• Translatepress messed up my layout in the Arabic translated page, it narrowed it down instead of making it full width. I tried to ‘Fix spaces between HTML attributes’ and then ‘Fix broken HTML’ when it didn’t work. The layout was fixed but I got many question mark signs instead of Arabic “????”.

    For now I disabled them all and kept the messed up layout. How can I fix it without getting question marks as a translation?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    You could activate the “Fix broken HTML” and you could easily resolve the ??? by adding another font to the arabic version using a little CSS.

    The code is:

    @import url(‘https://fonts.googleapis.com/css?family=Padauk&display=swap’);
    body.translatepress-ar { font-family:Padauk; } // Use your desired font and language code

    And to find a font for your language you simple enter the site pick a font.
    https://fonts.google.com/?subset=arabic

    The code must be pasted in the Additional CSS.

    Let me know if you don’t manage to follow the steps.

    Cheers,

    • This reply was modified 4 years, 9 months ago by Denis.
    Thread Starter halahalbadani

    (@halahalbadani)

    I’m sorry for replying late, but I have done what you mentioned above. I added:

    @import url(‘https://fonts.googleapis.com/css2?family=Scheherazade&display=swap’);
    body.translatepress-ar {font-family: ‘Scheherazade’, serif; }

    into the additional CSS. But still I get ??? in many places around my website. when i try to translate, it says from the original text and then from English with an empty field, to Arabic with an empty field.

    I would really appreciate your help. I haven’t changed my website, you can see the question marks if you visit it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fixing broken HTML’ is closed to new replies.