This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is unable to locate and translate the text above the search box in the Kadence modal search box on their website.
Solution:
We advised the client that the text they are trying to translate is added through the theme's functions.php file and is not set up for translation by default.
To make this text translatable, they should replace the existing function in
functions.php
with the following code:
function kt_add_form_title( $form ) { $content = '<div class="search-modal-content"><h5>' . __('What are you looking for?', 'your-text-domain') . '</h5></div>'; return $content . $form; }
After updating the function, they should navigate to WPML->Themes and Plugin Localization to scan the theme and then translate the text using WPML's String Translation. For more details on theme internationalization, visit WordPress Theme Internationalization.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.
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.
This topic contains 5 replies, has 2 voices.
Last updated by 2 weeks, 6 days ago.
Assisted by: Shekhar Bhandari.