qtranslate and revolution slider – Multilingual Slider
-
I have been searching for a way to use qTranslate with Revolution Slider. However I was unable to find a clear answers. Luckily I was able to find a simple work around so that the Revolution Slider can view different languages texts. Below are the steps:
1. Edit getLayers() Function in file:
wp-content/plugins/revslider/inc_php/revslider_slide.class.php
Here we just need to use the qtranslate hook:
qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage
to replace the Revolution Slider Layers Content.The function should now look something like:
public function getLayers(){ $this->validateInited(); $qtranslatedLayers = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($this->arrLayers); return($qtranslatedLayers); }
2. Now in Your Slider, you just need to put the text in each slide in the multi languages format:
exampe:[:en] Welcome [:ar] ????? ???
I hope this helps someone..
- The topic ‘qtranslate and revolution slider – Multilingual Slider’ is closed to new replies.