Flexslider和从右至左语言支持 [英] Flexslider and Right-To-Left language support
问题描述
我在WordPress上安装了包含Flexslider的模板.我的语言是从右向左(RTL)编写的.当页面为RTL时,Flexslider停止并且没有图像出现.我该如何解决这个问题?
I installed a template on WordPress that contains Flexslider. My language is written Right-To-Left (RTL). When the page is RTL, the Flexslider stops and no images appear. How can I resolve this issue?
推荐答案
flex滑块不支持rtl语言.修复此问题的唯一方法是使div按住滑块direction: ltr
flex slider doesn't support rtl languages. The only way to fix it is to make the div holding the slider direction: ltr
-
在您的主题上,如果主页上的滑块找到一个名为index.php的文件,则找到保存滑块的div和所有这些代码
style="direction:ltr;"
这将使您的文章完美地显示在网上
On your theme, if the slider on the home page find a file called index.php find the div that's holding the slider and all this code
style="direction:ltr;"
this will display your articles on the slier perfectly
要修复rtl的文本方向,请在您的主题上并在保存代码.flexslider .slides > li{
的行上找到一个名为flexslider.css的文件(对我而言,第25行)添加以下内容:
text-align:right;
direction:rtl;
To fix text direction from rtl find a file called flexslider.css on your theme and on the line holding the code .flexslider .slides > li{
(line #25 for me) add this:
text-align:right;
direction:rtl;
这些牵引步骤已为我修复.祝你好运
These tow steps fixed it for me. Good luck
这篇关于Flexslider和从右至左语言支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!