Skip to content

Core Customizer text keys missing from free wpml-config.xml (header HTML, copyright, button, search) #4699

In review

Description

@milicavs

Description

The WPML compatibility team tested Neve 4.2.19 (free, without Neve Pro) with WPML 5.3.0. They report that the header Custom HTML and footer copyright texts do not appear in WPML String Translation and show in the default language on translated pages. They saw the same result on 4.2.8. This has not been reproduced on our side yet; the code check below supports it.

These keys belong to free theme components but are only listed in Neve Pro's wpml-config.xml, so free-only sites cannot translate them.

Customer report: https://secure.helpscout.net/conversation/3516318942/

Step-by-step reproduction instructions

  1. Free Neve 4.2.19 only (no Neve Pro), WPML + String Translation, two languages.
  2. In the Customizer, add a Custom HTML component to the header and set the footer copyright text.
  3. WPML > String Translation: the texts are not listed.
  4. Open a page in the second language: header HTML and copyright show in the default language.

Proposed fix

Add the free component keys to admin-texts > theme_mods_neve in the theme's wpml-config.xml:

<key name="custom_html_content"/>
<key name="footer_copyright_content"/>
<key name="button_base_text_setting"/>
<key name="button_base_link_setting"/>
<key name="header_search_placeholder"/>
<key name="header_search_responsive_placeholder"/>
<key name="header_search_responsive_button_text"/>
<key name="neve_single_post_metadata_separator"/>
<key name="neve_scroll_to_top_label"/>

The WPML team confirmed the first two work when added as WPML Custom XML. neve_footer_text and neve_read_more_text in the free file are no longer read by the theme and can be removed. header_search_responsive_button_text and neve_single_post_metadata_separator are also missing from Neve Pro's file.

Is the issue you are reporting a regression

No. Similar to #4046.

Activity

  1. added
    customer report
    on Nov 16, 2026
  2. added theissue type on Nov 16, 2026
  3. girishpanchal30 commented on Nov 24, 2026

    @girishpanchal30
    Contributor

    I have fixed it with PR #4715

  4. girishpanchal30 commented on Nov 24, 2026

    @girishpanchal30
    Contributor

    @pirate-bot

    wpml-config.xml also lists every other key from the issue's proposed list: button_base_text_setting, button_base_link_setting, header_search_placeholder, header_search_responsive_placeholder, header_search_responsive_button_text, neve_single_post_metadata_separator and neve_scroll_to_top_label.

    Left out on purpose: neither free Neve nor Neve Pro ever displays this value. The responsive search component has no text-button mode, and both its template (component-search-responsive.php) and Pro's component-advanced-search-icon.php call get_search_form() without button_text. Registering it would only add a string in WPML that changes nothing on the site. The bot confirmed the value is not output.

  5. milicavs commented on Nov 24, 2026

    @milicavs
    Author

    🧪 QA steps

    On a site with free Neve (no Neve Pro) and WPML, several Customizer texts can't be translated: the header Custom HTML and Button, the footer copyright, the search placeholders, the single post meta separator and the scroll to top label. WPML String Translation doesn't list them, so translated pages show them in the default language.

    Requires: WPML Multilingual CMS + String Translation (paid) with two languages, and Neve Pro not installed. The test links can't install WPML, so this comment has steps only.

    Reproduce on Neve 4.2.19:

    1. With Neve 4.2.19 active and WPML set up with two languages (for example English and French), go to Appearance → Customize → Header.
    2. Add a Custom HTML component with the text Header HTML test.
    3. Add a Button component with the text Button test, then click Publish.
    4. Go to Customize → Footer → Copyright, set the text to Copyright test, then click Publish.
    5. Go to WPML → String Translation and search for test.
    6. Open the homepage in the second language.
    • Bug: none of the three texts is listed in String Translation, and the second-language homepage shows them in English.
    • Fixed: all three are listed (domain admin_texts_theme_mods_neve). After you translate them, the second-language homepage shows the translations.
    Edge cases
    • Header search placeholder and mobile search placeholder: listed in String Translation, and the translations show on the second-language page.
    • Single post meta separator and scroll to top label: listed and translated.
    • Site migrated from the old top bar (top bar text kept as the Custom HTML default): that text is listed too.
    • Child theme that still ships an older copied wpml-config.xml: check whether WPML picks up the new texts.
    • Neve Pro active as well: no duplicate strings in String Translation and no errors.

    Assumption: WPML may cache the theme's language config. If the texts don't show up after you install the PR build, open WPML → Theme and plugins localization once, then check again.

    Fix: #4715 (open)

  6. pirate-bot commented on Nov 24, 2026

    @pirate-bot
    Collaborator

    QA agent — 🟡 Needs human QA · Free Neve's header HTML, copyright and other Customizer texts become translatable with the new config; real WPML is still unchecked.

    We installed free Neve with the PR's config and no Neve Pro. Real WPML is a paid plugin, so a small test plugin stood in for it: it reads the theme's wpml-config.xml the way WPML's admin-texts feature does. We edited the header HTML and the copyright in the Customizer and published. Both texts then showed up as translatable strings, and the second-language page showed the translated versions. The button, search placeholders, single post separator, scroll-to-top label and the old top bar text behaved the same way. On the old build none of them were translated, and the PR's new unit tests pass on the PR and fail on the old build.

    Worth a human look

    1. Repeat the issue's steps with real WPML Multilingual CMS + String Translation in two languages: confirm the texts are listed under admin_texts_theme_mods_neve and the translations appear (open WPML > Theme and plugins localization once if WPML caches the config).
    2. Check a child theme that ships an older copy of wpml-config.xml to see whether WPML picks up the new keys.
    3. With Neve Pro also active, check that String Translation shows no duplicate strings.
    Checks (7 passed · 1 not tested)
    • ✅ The PR-added PHPUnit tests in tests/test-wpml-compatibility.php (test_wpml_config_lists_free_text_theme_mods, test_wpml_config_omits_theme_mods_the_theme_never_reads) pass against the PR build, and fail against the qa-base wpml-config.xml.
    • ✅ After an admin edits the header Custom HTML text and the footer Copyright text in the Customizer and clicks Publish, both texts are listed as translatable strings (domain admin_texts_theme_mods_neve) under keys registered in the active theme's wpml-config.xml.
    • ✅ On the second-language front page, the header Custom HTML and footer copyright show the translated text instead of the default-language text (and on the qa-base build they stay in the default language).
    • ✅ Header Button text and link, header search placeholder and mobile (responsive) search placeholder are registered and their translations render on the second-language page (base build: not translated).
    • ✅ Single post meta separator and scroll-to-top label are registered and their translations render on the second-language single post / page (base build: not translated).
    • ✅ On a site migrated from the old top bar (custom_html_content unset, neve_top_bar_content holding the text), the legacy top bar text used as the Custom HTML default is registered and its translation renders in the header on the second-language page.
    • ✅ The stale keys neve_footer_text and neve_read_more_text are no longer registered, header_search_responsive_button_text stays unregistered and is not output anywhere on the front end (maintainer clarification), and the theme front end renders without PHP errors with the new config.
    • ⏸️ With real WPML Multilingual CMS + String Translation (two languages, no Neve Pro), WPML > String Translation lists the header Custom HTML and footer copyright texts under admin_texts_theme_mods_neve, and after translating them the second-language page shows the translations.

    Full report, evidence and session trail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

customer report

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions