Skip Navigation

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

Problem:
The client is using the Spectra Blocks plugin with the Astra Theme and has encountered an issue where custom CSS added to a page is not being copied to the translated page when using the WPML translation editor.

Solution:
We recommend the following steps to ensure that custom CSS is copied to the translated pages:
1. Navigate to WPML >> Settings >> Custom Fields Translation section.
2. Click on the "Show system fields" link.
3. Search for the

_uag_custom_page_level_css

field and set it to copy.
4. Click the Save button.
5. Open the default language page in Edit mode and press the update button.

Please try these steps on your site to see if it resolves the issue.

Note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket for further assistance.

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 Noman 7 months, 2 weeks ago.

Assisted by: Noman.

Author Posts
April 15, 2024 at 9:38 am #15518625

erezS-3

I am using the Spectra Blocks plugin (https://wordpress.org/plugins/ultimate-addons-for-gutenberg/) alongside the Astra Theme on my site. It has a panel to add custom CSS to a page. When I duplicate a page to another language, the custom CSS code is copied along with the page. When I use the translation editor, the page gets translated, but the custom CSS is not copied to the translated page. How can I solve this?

April 15, 2024 at 10:19 am #15519006

Noman
Supporter

Languages: English (English )

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

I’ve followed the below steps on my test site:

1. Went to WPML >> Settings > Custom Fields Translation section.
2. Click on the “Show system fields” link as you can see in the attached screenshot.
3. Searched for “_uag_custom_page_level_css” field and set it to copy.
4. Pressed the Save button.
5. Open the default language page in Edit mode and just pressed an update button.

And now it seems to be working correctly for me as you can see in the below links:
Default language page: hidden link
Secondary language page: hidden link

Could you please try the same steps on your site and see if this resolves your issue.

Thank you

field settings 1.png
Show system fields 1.png