I downloaded the free Rookie parent theme and have no problem displaying translations of “Search Results for: %s” on a successful search results screen.
This works in the WordPress languages folder at wp-content/languages/themes/rookie-de_DE.mo
as well as Loco Translate’s custom directory. It works there if the files are named correctly because the parent theme correctly loads the “rookie” text domain using “load_theme_textdomain”.
Are your files named correctly under the WordPress languages directory? Unlike the de_DE.mo file inside the theme folder, the system location requires the prefix so files should be named rookie-de_DE.mo
Related Posts:
- Want to create Child theme, but already edited Parent theme css files and some php files
- Warning: printf(): Too few arguments in helpers.php file
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- Problems clearing cache
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- How to Change Site Elements based on referring URL
- Add the shortcodes from the enfold theme to the other theme
- WordPress child theme, creating a custom php template page
- Conditionally change WordPress core language
- Local WordPress from Git repo, where to set document root?
- How to translate the blog date in the Avada theme [closed]
- How to export/import theme customizer settings?
- Check php version before theme activation
- Separate WordPress themes for each category page
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- How to get the registered sidebar’s name by its id?
- is there a simple way to list every templates / php files used to generate a specific page?
- One button to change all settings in theme customizer?
- Activate different theme for temporary preview
- Nice scroll to wordpress
- Twitter feed is showing blank in WP site [closed]
- How to tell a theme to use different .mo and .po files?
- How do I hardcode a WordPress shortcode into my theme?
- Passing array in add_option()
- How to stop PHP code running when in a child theme
- Create a quick start wordpress installation [closed]
- child theme inherticance and php autoload
- Proper use of internationalization
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- Can’t extend some core classes
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- Reconfiguring WordPress site
- Customizer: active_callback and sanitize_callback incompatibility?
- two columns of posts on homepage, one of them “favorites”
- Custom Background by Page IDs
- Copyright info change – Corporate Plus Theme PHP [closed]
- WordPress Customizer Default Image
- Why in my theme I can’t see all the statics content under the posts?
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Design with Elementor and code the rest?
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Use custom template on custom post type
- How to have different site identity logos on each page on Astra Theme [closed]
- Include style.css in the Child Theme with PHP
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- blank white page when post/update/change option etc
- Removing “Powered by” footer using child theme PHP [closed]
- Overide Variable in Child Theme
- child parent styles enqueue order
- using wp enqueue style to create a CSS file specifically for a page template
- Implementing custom tag/tax pages
- How to style injected code in header section?
- Randomize Color Scheme Selection in Theme
- Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- Commas in Tag Cloud
- Trying to change featured image from 180×180 to full width on home page
- How to edit background color of only one sidebar?
- WordPress redirects page query parameter in URL
- Publish button now showing content after saving
- error_log PHP error log found. This file must not be in the production version of the theme. (wordpress theme check plugin)
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- Why would the child theme load in the Customize preview, but not on the site itself?
- Styling a category link
- Not able to remove caption shortcode from the content
- Implementing a multilingual WordPress site by installing several instances of WordPress and redirecting
- wordpress email checker on domain
- Unable to retrieve get_author_posts_url
- PHP “warning include_once(): Failed to open stream” Simple HTML DOM in WordPress Child Theme
- Display post date also if the date it’s the same for each post
- Invalid Argument foreach
- AJAX numerical pagination problem in TwentyFifteen-child theme
- How to edit button permalink inside function.php using a child theme?
- How to locate parent theme functions and add functions to my wordpress child theme?
- How can I render more than multiple posts on template-parts with post formats
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- style.min.css code issue
- user update profile for custom code
- Where to find the html for WordPress site? [closed]
- Create a custom theme-specific page, invisible in the admin-panel?
- Editing existing pre-created menus in PHP
- Two theme locations for two menus, but only one is showing up
- How to remove image on single product and get product to span page?
- Image not displayed
- Using existing widget code! [closed]
- WordPress Website Featured Image Replacement Issue
- Themes with variable width or single columns? I want to display source code
- .htaccess on multisite and roots theme?
- Move wordpress sidebar on homepage up to new position
- Catchable fatal error in appcloud free theme by Tokokoo
- Errors while Loading Most Recent Version of jQuery
- How to create and add js and css file when server is not on my PC?
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- How to conditionally concatenate and translate two very long strings?
- Font Awesome Icons as squares [closed]