Home › Forums › Pro Themes › Myself Pro › How can I change the titles (address, phone no) of contact section
- This topic has 5 replies, 2 voices, and was last updated 3 years, 9 months ago by wensolutions.
May 26, 2019 at 6:39 am #98570
I’m creating a german website, and the section titles of the contact form, specifically address, phone no are still in english – what’s the recommended way to change these to German please?May 27, 2019 at 12:58 am #98598
Contact form being an external plugin, translation of the string belonging to the plugin is not given by the theme and you should manually enter the translated string while creating a form.
In the label field while creating a form, please enter the translated string i.e German strings so that the strings appears translated in the front end.
Hope this clears your confusion.
Best Regards!May 27, 2019 at 4:16 am #98614
Thanks for the quick reply. The fields I’m talking about at in fact part of the theme – NOT the plugin.
<ul class="contact-info"> <?php if ( ! empty( $options['contact_address'] ) ) : ?> <li> <?php echo myself_pro_get_svg( array( 'icon' => 'location' ) ); ?> <span class="title"><?php esc_html_e( 'Address :', 'myself-pro' ); ?></span><span class="address"><?php echo wp_kses_post( $options['contact_address'] ); ?></span> </li> <?php endif; ?>
specifically, I refer to this line:
<?php esc_html_e( ‘Address :’, ‘myself-pro’ ); ?>
I know I can change the file, but this isn’t the right way – how do I correctly put a German word in for ‘Address :’, it’s something to do with the pto / mo files?
Thank you.May 27, 2019 at 7:16 am #98618
The string is translation ready and can be translated to any languages.
For the translation of the string, you can use the Loco translated plugin.
To be clear on this refer to below-given link:
So, translate the “Address” as well following the process mentioned the above link.
Hope this helps.
Thank you.May 27, 2019 at 4:16 pm #98643
Perfect! That worked a charm – thank you for pointing me in the right direction, I was aware WordPress was good with multi languages, and your tip was the final “glue” that made it fall into place. 🙂 Happy!May 27, 2019 at 11:56 pm #98665
Glad that we could help you.
Feel free to reach us for any further query/confusion.
- You must be logged in to reply to this topic.