Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You want a header item to show no content in its translation, essentially making the translation an empty string.
Solution:
We recommend trying one of the following methods:
Method 1:
1. Navigate to WPML >> String Translation page.
2. Search for the string you want to show as empty.
3. Edit the translation, add a blank space, and save it.

Method 2:
You can also hide the header item using CSS. Add the following code to your site's custom CSS section:

:lang(en) li.html.custom.html_top_right_text {<br />    display: none !important;<br />}

If these solutions do not resolve your issue or if they seem outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Noman 3 weeks, 4 days ago.

Assisted by: Noman.

Author Posts
December 23, 2024 at 3:52 pm #16540951

orO

Background of the issue:
I want to make an item in the header show no content in translation, that the translation would be an empty string. The site I need help with is hidden link.

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I make a header item show no content in translation using WPML?

December 24, 2024 at 5:55 am #16542448

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Could you please try to follow any of the below method and see if this resolves the issue:

Method 1:
1. Go to WPML >> String Translation page.
2. Search the string that you want to show as empty.
3. Edit the translation and add the blank space and save it as you can see in the attached screenshot.

Method 2:
You should be able to hide it using a small CSS code as follows:

:lang(en) li.html.custom.html_top_right_text {
    display: none !important;
}

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you

ST - Empty string.png
Empty space character added.png
Frontend - empty string in FR.png
Frontend - text in EN.png