Can't translate "Phone" and "Email" in contact secion

Hello,

I cant find such string as “phone” and “email” in Loco translate under Shapely theme and lithuanian language:
I was trying to find these two word in CSS editor, but no luck.

Please let me know what wrong I am doing.
Thank you in advance.

Hi there,
Thanks for reaching out.
In reference to your question here, could you perhaps try adding the following code snippet within the functions.php file.

/**

  • Code goes in theme functions.php
    */
    function my_custom_translations( $strings ) {
    $text = array(
    ‘Phone’ => ‘Phone field’,
    ‘Email’ => ‘Email field’,
    );

$strings = str_ireplace( array_keys( $text ), $text, $strings );
return $strings;
}
add_filter( ‘gettext’, ‘my_custom_translations’, 20 );

Notice how I have referenced the translations within the code. For example in “Phone”, the text on the left is the original theme String and the one on the right is the String you want to have rendered on the front-end.

I hope this helps.
Best Regards,
Support.