Skip Navigation

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.

This topic contains 1 reply, has 0 voices.

Last updated by Noman 14 hours, 21 minutes 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