Skip to content Skip to sidebar

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

Problem:
The client needs to remove specific content only from the secondary languages (English and German) on a multilingual site using WPML and the Enfold theme.
Solution:
We suggest two methods to address this issue:
1. Use CSS to hide the content in the secondary languages. Navigate to Appearance > Customizer > Custom CSS and add the following code:

html[lang="de-DE"] .av-azqhmd-0f1b66076b511bc95a4f41ed1a2aa12c, html[lang="en-US"] .av-azqhmd-0f1b66076b511bc95a4f41ed1a2aa12c {display: none}

2. Manually remove the content from the secondary languages. Go to your site's backend, access "Pages", switch the language to English, and use the Avia builder to edit and remove the unwanted content. Repeat the process for German.

If this solution does not resolve your issue or seems outdated, we 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 3 replies, has 2 voices.

Last updated by Mihai Apetrei 1 year, 8 months ago.

Assisted by: Mihai Apetrei.

Author Posts
August 31, 2024 at 9:37 am #16127195

brunoC-6

Contesto del problema:
The site is in 3 languages, the main one is Italian. I need to remove content ONLY from the other languages ​​(English and German). The theme in use is Enfold.

Sintomi:
I can't find the solution in the forum.

Domande:
How to remove content only from the secondary languages (English and German) using WPML?

August 31, 2024 at 8:21 pm #16128142

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

From what I can see inside the code of the page, it seems that the content was added with the avia builder straight in the actual page.

Important to mention is that, at the moment, I don't see that bike on the EN version of that page, only on German and Italian it shows up for me at the moment.

So, I am thinking of two ways:

1. We can use CSS to quickly hide it in both languages. Go to Appearance > Customizer > Custom CSS > add the code and save:


html[lang="de-DE"] .av-azqhmd-0f1b66076b511bc95a4f41ed1a2aa12c, html[lang="en-US"] .av-azqhmd-0f1b66076b511bc95a4f41ed1a2aa12c {display: none}

That should hide that block for you.

2. Second option is to go to your site's backend > go to "Pages" (the main list of all the pages existing on the site) > then switch the language at the top of the black bar to EN > then hover your mouse over the page that contains that content that you want to remove > Edit it with the same builder that the default language content was built with (probably Avia builder) > then manually remove that block and save the page.

After that, follow the same steps for German.

I hope that you will find this information helpful.

Mihai Apetrei

September 3, 2024 at 5:47 pm #16137335

brunoC-6

Hi Mihai Apetrei, thanks for your reply. Unfortunately I have a problem that prevents me from proceeding

https://wpml.org/forums/topic/site-redesign-and-one-language-does-not-duplicate-all-content/?ref=wd

I hope I can solve it as soon as possible and I will continue with pleasure and happiness by deepening the solution you proposed, thanks a lot.

I hope to update you soon. Best regards. Bruno

September 4, 2024 at 5:51 am #16138365

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Sure, no worries.

Take all the time that you need.