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?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
fatma's answer doesn't work for me. What works is modifying the
.flex-viewport
by settingdirection: ltr
:I used
reverse:true,
inflexslider()
function and the slider worked in opposite direction than the default.And
It worked for me.
You need to change both JS and CSS for it to work. Luckily it didn't require much work. I forked the project and added the support at https://github.com/layalk/FlexSlider/tree/rtl. Give it a try.
To fix directional navigation, these rules in your own stylesheet should override flexslider rules:
flex slider doesn't support rtl languages. The only way to fix it is to make the div holding the slider
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 perfectlyTo 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