doujiang5211 2018-09-25 07:19
浏览 54

在wordpress主题上添加RTL支持,搞砸了我的风格

I was having a nicely designed wordpress theme, until one of my clients requested to add Arabic translation, for which I used Polylang plugin.

Its all fine on the default English version, but when I switch to the Arabic version, I literally have all the DOM elements in RTL order, instead normal, and I need only the text to be RTL.

So question is, how to keep all DOM elements LTR, such as divs and images, but keep the text RTL. I know I will have to write some conditionals, but not sure what exactly to target in it. And if I am not wrong I will have to do that conditional in every loop I have?

Would be more then happy for some theory answer so I will figure out the coding by my self. Aint fun to copy paste :)

Thanks in Advance. Sorry if might be

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制