All Titles and Menus changed to “CHILD THEME LOADED” when applying 1.3.1 as child theme
I've staged our current website (built around 1.2.2) to see what would happen if I applied 1.3.1 to it. I upgraded the theme to 1.3.1, created a child them from that, and applied it to the staged site. I'd say it was 95% successful except for one thing: It turned the titles of everything (posts, pages, even menus) to "CHILD THEME LOADED". Which was literally true, but I'd prefer the original titles. When I go to edit a page or a post, the correct title is still there.
I asked the question on stack exchange and they suggested that perhaps "the theme has a bug that filters the_title in the event of a child theme being in place" and recommended I contact the author of the theme. So here I am. Any suggestions appreciated. The staged site is here, and if anyone wants to take a look under the hood, I'd be happy to give them access.
Cheers.
Comments (2)
Kevin Vess posted a few months ago, but the comment disappeared, so here it is again: The starter child theme includes an example style.css file and functions.php file, which include a few lines of code to test if the child theme is loading correctly.
You need to delete this test code from both files, which is identified in code comments.
Specifically, delete this code from the example functions.php file:
/**
* Below is a test to confirm the parent theme is being overridden by the child.
* If your page titles say, "Child Theme Loaded," the child theme is working.
* After you confirm it's working, delete this function and filter.
*/
function uuatheme_title() {
return "Child Theme Loaded";
}
add_filter( 'the_title', 'uuatheme_title' );
Yonkiman replied: That did the trick! I suspect there was some documentation I neglected to read - thanks for letting me know.