Home›Support›English Support›[Resolved] acf settings not retrived after new language added (pt) and duplicated
[Resolved] acf settings not retrived after new language added (pt) and duplicated
This thread is resolved. Here is a description of the problem and solution.
Problem:
The CSS for that color is dynamic and managed with ACF; the admin can pick a color from the dashboard. But it is not working for the second language.
Solution:
It looks like you create an ACF Options page for those CSS settings. Please follow our guide on translating option pages. You should be able to correct this issue by switching to the new PT language.
So I created a new language with code "pt" (BRA2 in language switcher) and duplicated contente from old "Portuguese, Brazil" (BRA in language switcher) to the new "Portuguese" in Translation Management.
Afterwards I checked the site and most seem to work but I'm having an issue with non-translateble ACF PRO settings used in CSS - such as a background-color - which are not retrived by acf's "get_field" when I browse the site in the new Portuguese (pt) language. They shoud be fetched from default English but NULL is returned instead.
OK: hidden link
hover mouse on top menu "Piattaforma" and a layer with white background color will appear correctly.
bug: hidden link
hover mouse on top menu "Platform" and the same layer doesn't have a background color, is transparent.
The css for that color is dynamic and is managed with ACF and the admin can pick a color from dashaboard. I attach a pic to explain with php code and resulting css for the two pages above, one correct, one with empty colors.
It looks like you create an ACF Options page for those CSS settings. Please follow our guide on translating option pages. You should be able to correct this issue by switching to the new PT language.
Ok thanks.
It would be nice if the WPML duplication feature could take into account those translatable ACF options too.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.