Skip Navigation

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

Problem:
Translated pages look different, CSS is altered on English pages.

Solution:
Remember to:

1) fix WP Memory Limit to at-least 128MB in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */

2) clear all caches (server, plugins and browser) and/or try deactivating caches temporarily to check for such issues.

Sometimes these preliminary checks help resolving such issues.

Relevant Documentation:
- https://wpml.org/home/minimum-requirements/
- https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

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 2 voices.

Last updated by Waqas Bin Hasan 1 year, 6 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 17, 2023 at 8:08 pm #14053301

arad

Tell us what you are trying to do?
I created the site in Dutch and translated everything to English. Somehow, the English pages look and feel different. The CSS must be different since typefaces are wrong, and URL links are not shown the same.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
Correct page: hidden link
Not correct page: hidden link
Look at the text with links: In the Dutch page the are in color, in the English page they are only in color when mouse hover

same for typeface:
Correct page: hidden link
Not correct page: hidden link
See screenshots

Screenshot 2023-07-17 at 22.04.35.png
Screenshot 2023-07-17 at 22.04.19.png
Screenshot 2023-07-17 at 22.02.56.png
Screenshot 2023-07-17 at 22.03.25.png
July 18, 2023 at 9:45 am #14056987

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting the support.

First of all, I'll advise to fix WP Memory Limit to improve the overall performance.

You can set WP Memory Limit in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Remember to add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */

Then I'll advise to check this guide https://wpml.org/documentation/theme-compatibility/using-wpml-with-the-avada-theme/#setting-theme-options and see if it helps around theme options?

On the other hand, this could be due to the way the page builder or the theme stores the styling for the content. Some store the styling in a custom field (the custom field usually contains the "style" or "css" or "layout" or "styling" wording) and that custom field might need to first be set to "copy" in order to have the styling being carried over to the translated page.

After doing this, you should first make a small change to the default language, then save the page, then go to the translation of that page and re-save it - and the CSS should be copied over.

I'll also recommend clearing all caches between the checks (as above mentioned), as well as, testing with a minimal setup with only most required plugins. Remember to take full backup of site and DB beforehand.

Please let me know and I'll try my best to help you further on the matter.

Regards.

July 19, 2023 at 7:19 pm #14068527

arad

Strangly, after some time the page looked ok again. So, Waqas, you where right about the cache.