Translation Issues with polylang plugin in Evolve theme
-
Although the Polylang plugin works fine in my Evolve theme, however I can’t translate the contain within the Parallax slider.
I need to add strings to polylang plugin for every text within parallax sliderThanks Folks
-
It is the 1.9.0 Premium. Is the same with 3.3.0 in parallax slider.
I created my wpml-config.xml from the name options that you gave me and happily it works.
Please could you provide a screen copy of where you put the file?
And copy paste your wpml-config.xml here using the
code
button for the lisibility.<wpml-config>
<admin-texts>
<key name=”evolve-theme”>
<key name=”evl_slide1_title” />
<key name=”evl_slide1_desc” />
<key name=”evl_slide1_button” />
<key name=”evl_slide2_title” />
<key name=”evl_slide2_desc” />
<key name=”evl_slide2_button” />
<key name=”evl_slide3_title” />
<key name=”evl_slide3_desc” />
<key name=”evl_slide3_button” />
<key name=”evl_slide4_title” />
<key name=”evl_slide4_desc” />
<key name=”evl_slide4_button” />
<key name=”evl_slide5_title” />
<key name=”evl_slide5_desc” />
<key name=”evl_slide5_button” />
</key>
</admin-texts>
</wpml-config>for the photo in a minute
`<wpml-config>
<admin-texts>
<key name=”evolve-theme”>
<key name=”evl_slide1_title” />
<key name=”evl_slide1_desc” />
<key name=”evl_slide1_button” />
<key name=”evl_slide2_title” />
<key name=”evl_slide2_desc” />
<key name=”evl_slide2_button” />
<key name=”evl_slide3_title” />
<key name=”evl_slide3_desc” />
<key name=”evl_slide3_button” />
<key name=”evl_slide4_title” />
<key name=”evl_slide4_desc” />
<key name=”evl_slide4_button” />
<key name=”evl_slide5_title” />
<key name=”evl_slide5_desc” />
<key name=”evl_slide5_button” />
</key>
</admin-texts>
</wpml-config>`https://cleanpass.grandeurandluxury.com/wp-content/uploads/2015/07/Screenshot-2015-07-23-18.48.32.png
I re-write your file. Copy/paste the code below in your wpml-config.xml
<wpml-config> <admin-texts> <key name="evolve-theme"> <key name="evl_slide1_title" /> <key name="evl_slide1_desc" /> <key name="evl_slide1_button" /> <key name="evl_slide2_title" /> <key name="evl_slide2_desc" /> <key name="evl_slide2_button" /> <key name="evl_slide3_title" /> <key name="evl_slide3_desc" /> <key name="evl_slide3_button" /> <key name="evl_slide4_title" /> <key name="evl_slide4_desc" /> <key name="evl_slide4_button" /> <key name="evl_slide5_title" /> <key name="evl_slide5_desc" /> <key name="evl_slide5_button" /> </key> </admin-texts> </wpml-config>
I don’t have words to thank you. The strings are at their position
Thanks a lot. You are realy an EXPERT!!!
Just for the record , what i wrote wrong in xml file?
In fact when I pasted your file the options were pasted in bold, strange.
Anyway it works and it’s fine.
Please put your topic as “resolved”.The same technic works also in the other sliders, such as bootstrap, I assume.
What defines the key name for a specific slider Chrystl?
The same technic works also in the other sliders, such as bootstrap, I assume.
It works for the all Theme Options.
What defines the key name for a specific slider Chrystl?
Sorry I don’t understand your question. Could you be more precise.
Hi Chrystl,
I just want to know how I can find the the name of these options that is written in key name
for the parallax slider is <key name=”evl_slide1_title” />
<key name=”evl_slide1_desc” />
<key name=”evl_slide1_button” />where I can find the same for the bootstrap slider in Evolve theme?
The above I found in their forum, but for the bootstrap slider they haven’t any
where I can find the same for the bootstrap slider in Evolve theme?
Either you ask to the theme/plugin author or you must search them in your DB in the wp_options table.
Thanks I will do that!
Hi there
I have the evolve 3.4.1 and I want to translate the parallax slider
Under your instructions I’ve done this in my 1.9.0 plus version but the strings don’t appear in new 3.4.1 version
I noticed that in their library basic-functions.php file they made some changes
Version 3.4.1 the parallax slider sector is the following:
/* Parallax Slider */
function evolve_parallax() {
global $evl_options;
if ($evl_options[‘evl_show_slide1’] == “1” || $evl_options[‘evl_show_slide2’] == “1” || $evl_options[‘evl_show_slide3’] == “1” || $evl_options[‘evl_show_slide4’] == “1” || $evl_options[‘evl_show_slide5’] == “1” ) {
echo “<div id=’da-slider’ class=’da-slider’>”;for($i = 1; $i <= 5; $i++) {
if ( $evl_options[“evl_show_slide{$i}”] == “1” ) {echo “<div class=’da-slide’>”;
echo “<h2>” . esc_attr( $evl_options[“evl_slide{$i}_title”] ) . “</h2>”;
echo “<p>” . esc_attr( $evl_options[“evl_slide{$i}_desc”] ) . “</p>”;
echo do_shortcode( $evl_options[“evl_slide{$i}_button”] );
echo “<div class=’da-img’><img class=’img-responsive’ src='” . $evl_options[“evl_slide{$i}_img”][‘url’] . “‘ alt='” . $evl_options[“evl_slide{$i}_title”] . “‘ /></div>”;
echo “</div>”;
}
}echo “<nav class=’da-arrows’><span class=’da-arrows-prev’></span><span class=’da-arrows-next’></span></nav></div>”;
}And in the previous 1.9.0 plus or 3.3.0 free which works,was the following:
/* Parallax Slider */
function evolve_parallax() {
$imagepathfolder = get_template_directory_uri() . ‘/library/media/images/’;
echo “<div id=’da-slider’ class=’da-slider’>”;
$evolve_slide_1 = evolve_get_option(‘evl_show_slide1′,’1’);
$evolve_slide_2 = evolve_get_option(‘evl_show_slide2′,’1’);
$evolve_slide_3 = evolve_get_option(‘evl_show_slide3′,’1’);
$evolve_slide_4 = evolve_get_option(‘evl_show_slide4′,’1’);
$evolve_slide_5 = evolve_get_option(‘evl_show_slide5′,’1’);if ($evolve_slide_1 == “1”) {
$evolve_slide1_title = evolve_get_option(‘evl_slide1_title’,’Super Awesome WP Theme’);if ($evolve_slide1_title === false) $evolve_slide1_title = ”;
$evolve_slide1_desc = evolve_get_option(‘evl_slide1_desc’,’Absolutely free of cost theme with amazing design and premium features which will impress your visitors’);if ($evolve_slide1_desc === false) $evolve_slide1_desc = ”;
$evolve_slide1_button = evolve_get_option(‘evl_slide1_button’,’Learn more‘);if ($evolve_slide1_button === false) $evolve_slide1_button = ”;
$evolve_slide1_img = evolve_get_option(‘evl_slide1_img’, $imagepathfolder . ‘parallax/6.png’);if ($evolve_slide1_img === false) $evolve_slide1_img = ”;echo “<div class=’da-slide’>”;
echo “<h2>”.esc_attr($evolve_slide1_title).”</h2>”;
echo “<p>”.esc_attr($evolve_slide1_desc).”</p>”;
echo do_shortcode($evolve_slide1_button);
echo “<div class=’da-img’><img class=’img-responsive’ src='”.$evolve_slide1_img.”‘ alt='”.$evolve_slide1_title.”‘ /></div>”;
echo “</div>”;
}
I created the same wpml-config.xml file for the new version but doesn’t work!
Could you help me about this?
Thanks in advance
Georgios
Hi
/* Parallax Slider */
function evolve_parallax() {
global $evl_options;It’s because the option name is not
evolve-theme
butevl_options
for the 3.4.1 version.
- The topic ‘Translation Issues with polylang plugin in Evolve theme’ is closed to new replies.