Tell us what you are trying to do?
I am trying to translate a piece of text. That possibly may be "hardcoded" into the HTML.
I am unsure how to translate this. And if it is even possible with WPML.
If it is not possible, then a suggestion to what route i then might take - possibly translating it manually using functions.php?
Is there any documentation that you are following?
No, i can't find any.
Is there a similar example that we can see?
This is the text i am trying to translate: hidden link
And it looks like in the Chrome Dev Tool, that it indeed is some sort of "hardcoded": hidden link
What is the link to your site?
You can see it on a mobile phone on this URL: hidden link
The text i am trying to translate is "Vis undermenu" and "Skjul undermenu". Which is respectively "Show submenu" and "Hide submenu" in english.
if the text is hard coded in your theme files, you will need to make sure you are using recommended approach and wrapping text in the get text domain, to be translatable.
Then scan your theme files and translate via WPML String translation.
Thank you for contacting WPML support, I'd be happy to help you with this issue.
You should add echo to output the string on the frontend like this
<?php echo __('this is a some message', 'my-plugin-domain'); ?>
While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line: