Okay
  Public Ticket #274169
RTL support enabling
Closed

Comments

  • ali started the conversation

    Dear,

    can you help me in enabling RTL support on your theme,

    as well i guess you had a 60% done translation file in another theme will that work in this one? can you provide that to me ? 

    i need you to tell me how to save the file translation file

    and what change i need to do wp-config to run the rtl css and what to add to use the arabic po file

  •  93
    djwd replied

    Hi there,
    I don't think the translation file from my previous theme will fit your needs as there are many different strings between them, they are theme specific.
    To create the ar_AR.po file you need to download a free software as PoEdit (google for it), then you have to open the default.po file located in the theme "languages" folder and start translating, when you're done, save the file as ar_AR.po

    To set your wordpress language, you need to open wp-config.php and search for

    define ('WPLANG', '');

    and add your language code

    define ('WPLANG', 'ar_AR');

    Please check Wordpress Codex for further details

    Regards
    djwd

    Regards
    djwd

  • ali replied

    thank you very much one more issue is there

    i got some translation file which helps me for the part i need and i got a plugin that can do the code changes as needed to use the translation file

    the issue is one the site is on arabic RTL mode the slider don't work correctly if i return to LTR and english the slider works perfectly !!!

  •  93
    djwd replied

    Hi there,
    please try to do the following:

    1. Open admin/functions-extended/fn-js.php

    2. There should be an empty line on line 187.

    3. Enter this on that line:

    rtl: true,

    If it works I'll include this in the next update. If you're having difficulties editing the file I can directly drop you an updated version of that file.

    Hope this helps

    Regards
    djwd

    Regards
    djwd

  • ali replied

    currently i solved the issue by adding 

    dir="ltr"  

    in the slider tag in the php file that have the slider 

    will try your propused solution as well 

    but now i have a new issue

    i need to apply arabic fonts i have the font files eot,ttf,svg,woff   and i updated the css for them but looks like the theme is forcing 

    its fonts 

    can you help ?

  •  93
    djwd replied

    Thanks for sharing your solution, I'll test that one out too!

    I will add a toggle to disable google fonts in the next update, in the meantime you can disable them by commenting out/removing line 118 in functions.php:

    include_once('admin/functions-extended/fn-typography.php'); //User Typography

    It should work

    Regards
    djwd

    Regards
    djwd

  •  93
    djwd replied

    Update on this last one:
    The toggle to disable Google Fonts is already there actually, in Theme Options > Typography > Enable Custom Typography Styles

    Do you have this disabled?

    Regards
    djwd

    Regards
    djwd

  • ali replied

    one more thing 

    i just updated wordpress to 4.0 and themeoptions page is comming blank !!

    is there anyway to solve this without re-installing newer version of theme i did few modification on css as told you to make usuable for my case and my fonts

  • ali replied

    its ok i guess the issue of blank screen was a result of commenting

    include_once('admin/functions-extended/fn-typography.php'); //User Typography

    i uncommented it and it is fine now

    i got some javascript to re-apply the fonts that i wound after what ever fonts are applied so i guess my issue is solved by that