Home › Forums › Massage Center (Spa) Forum › Theme translation in Dutch
- This topic has 11 replies, 2 voices, and was last updated 7 years, 9 months ago by Sonl Sinha.
-
AuthorPosts
-
March 17, 2017 at 10:38 am #65831
I am working on a clients website with Wellness/Spa Pro theme. A few things I can translate through the theme options but not all of them. I have installed the plugin loco translate but it says that the template is missing and that this bundle doesn’t define a translations template file. What do I do to translate in Dutch? Can you please help?
March 17, 2017 at 12:09 pm #65845Hi Carla,
Can you tell us which text do you want to translate? Which is not in the theme options so that we can assist you further.
Regards,
DaveMarch 17, 2017 at 12:23 pm #65846Yes I can. On the homepage in the Populair procedure box I can’t translate the text on the read more buttons. In the topbar I can’t find how to translate Folow us.
I managed to get a translation template in loco translate but in there I see mainly back end translations and not the front end translation options.
Also I can’t find in loco translate an option to translate search in de searchform. I know I can translate it by copying the searchform file to my childtheme and change it there so that is an option but I expected it also to be possible through loco translate.
And also I can’t find how to translate “Phone” in the footer contact section.
I hope you can help me with this issues.March 17, 2017 at 12:31 pm #65848Hi Carla,
For the topbar Foloow us text kindly go to header.php and change the text from there.
Watch this video on how to translate text within sections:
https://www.youtube.com/watch?v=vRrVr8waiH4
Regards,
DaveMarch 17, 2017 at 12:47 pm #65850Thank you for your reply. Follow us I have translated through the header.php and Search through the searchform.php but Read more on the Populair section button I still could not translate.
The Youtube film you posted is about translating the whole website through qtranslate but that is not what I want. The website is in Dutch only and therefor I have to translate the buttons. All the other buttons I could translate except for the button in the Populair procedure box. Is there a php.file I can use for that? Or is there another option in the Theme options box settings?
Thank you.March 17, 2017 at 12:51 pm #65851Hi Carla,
Kindly go to functions.php on line number 617. Change the text from there.
Regards,
DaveMarch 17, 2017 at 12:53 pm #65852Thank you. I work with a child theme. It would be very helpfull if you could provide me with the exact code to put in my child theme functions.php. I hope that is possible. Thanks in advance.
March 17, 2017 at 1:03 pm #65856Here is the code:
// add shortcode for popular procedures function skt_spa_popular($skt_var, $content = null){ extract( shortcode_atts(array( 'title' => 'title', 'icon' => get_template_directory_uri().'/images/icon-customizable.png', 'link' => '#', ), $skt_var)); return '<div id="popular-box"> <img src="'.$icon.'" /> <h2>'.$title.'</h2> <p>'.$content.'</p> <a class="read-more" href="'.$link.'">Read More</a> </div>'; } add_shortcode('popular','skt_spa_popular');
Regards,
DaveMarch 17, 2017 at 1:18 pm #65863I tried adding this code to my child theme functions.php and I got an error and was locked out of my dashboard. So I deleted the code through ftp and now I am back in but this isn’t the resolution I’m afraid. Isn’t there another option other than change this through the functions.php? I hope there is.
All the other read more buttons I could change through the theme options only this one I can’t. Perhaps in an upgraded version you can make this possible? I think you will make a lot of people happy.
March 17, 2017 at 1:27 pm #65867Obviously it will throw an error. You need to remove that code from your main site’s function.php and then add the code in your child theme.
2 shortcode function didn’t work on the same theme.
Regards,
DaveMarch 17, 2017 at 1:36 pm #65871Yesss! It worked. I didn’t know that I had to remove it first. I thought it would overwrite it. But it worked now. Thank you very much for your help.
March 17, 2017 at 1:37 pm #65873🙂
-
AuthorPosts
- The topic ‘Theme translation in Dutch’ is closed to new replies.