Search Results title and subtitle in French
-
Hello,
thanks for this great theme!
It’s very clean and extensive, really fun to work with.I am building a site in french and have a small problem with the Search tool.
The Search placeholder displays Rechercher correctly in French.However, the Search Results messages are displayed in English.
The span.page-title displays:
‘Search results for’…
And when there are no results found, the subtitle .page-description displays this message:
‘Sorry, but nothing matched your search terms. Please try again with some different keywords.’The only file where I could locate these message is the \blocksy\inc\components\hero\elements.php file.
else { $title = sprintf( // translators: %s is the number of results __( '<span>Search results for</span> %s', 'blocksy' ), get_search_query() ); if (! have_posts()) { // translators: %s are the opening and closing of the html tags $description = sprintf( __('%sSorry, but nothing matched your search terms. Please try again with some different keywords.%s', 'blocksy'), '<div class="' . $description_class . '">', '</div>' ); }
When I edit this file, the page-title and subtitle are displayed correctly in French, but I have not been able to make it work from a file located in the child theme.
How can the Search Results page-title and subtitle be edited without modifying files in the Blocksy theme folder?Thank you in advance for your help.
- The topic ‘Search Results title and subtitle in French’ is closed to new replies.