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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 5 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year, 1 month ago.

Assisted by: Marsel Nikolli.

Author Posts
April 24, 2024 at 9:59 am #15559944

flaviuG

Tell us what you are trying to do?
- The header / footer templates are translated with WPML, after some days the CSS is broken (attachment), and the solution is to save the translation for the templates again. The issue is recurring, but I don't now how to reproduce it.

Is there any documentation that you are following?

Is there a similar example that we can see?
- at this time no, I have saved the Header Template (from Translations Queue) and everything looks ok.

What is the link to your site?
hidden link - main
hidden link - translated

Screenshot 2024-04-24 122252.png
April 24, 2024 at 10:56 am #15560283

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will gladly help you.

Given that the issue happens randomly in a few days it might be related to the configuration of the cache plugin.

I suggest checking the cache plugin's configuration for any CSS file-minimizing option and disabling it to check if the issue persists.

Regards,
Marsel

May 1, 2024 at 5:00 am #15583062

flaviuG

Hi,

I've changed the caching settings, and disable all minimizing, but after a few days the problem is back. Strangely only the header/footer seems affected, please take a look: hidden link and hidden link for English version.

May 2, 2024 at 9:15 am #15586349

Marsel Nikolli

Hi,

Thank you for the update.

I've checked your website and on my end, everything seems to work correctly.

1) Can you please check if there is any cache mechanism on the server-side, that might affect it as well?
2) Can you tell me if there is any kind of pattern when the issue happens (like a specific time/date, or after x amount of days)?
---

It might not be related to the issue, but according to your debug.info, the WP memory limit needs to be increased, WordPress uses 40Mb as default and the minimum requirements for WPML are 128 MB. (Kindly check this page: https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the line: /* That's all, stop editing! Happy publishing. */

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

* Note: Please make sure you have a full backup of your website before making any updates/changes to your website.

May 3, 2024 at 9:42 am #15590621

flaviuG

Hi Marsel,

I have set 256M for WP.

The strange thing is, even without css optimization the header / footer scrambled after a few days, not really sure about the interval.

If I empty cache (Powered Cache) nothing change. The only way to correct the header / footer is to edit & re-save the template form Translation Queue. If I edit-save header the footer will be displayed correctly too.

For now, I have update wpml settings to user /en folder for English instead of different domain.

May 3, 2024 at 3:56 pm #15591987

Marsel Nikolli

Hi,

Thank you for the update.

If the issue persists with the new configuration of the languages in your site, I would suggest testing in a minimal setup:

- keep the theme you have
- activate only WPML plugins and must-use plugins
- deactivate all the other plugins

After, check if the issue persists.

* It might be best to try having the minimal setup in a staging site.

Let me know how it goes,
Marsel

The topic ‘[Closed] Header / Footer in Elementor Templates gets css broken after some time.’ is closed to new replies.