All Titles and Menus changed to "CHILD THEME LOADED"

I'm testing out a theme update on our website using a staged site created by WPStaging.That part seemed to work w

I'm testing out a theme update on our website using a staged site created by WPStaging. That part seemed to work well. Then I upgraded the theme, created a child theme from it, and applied that child them to it. Now the title of every post, page, and even menu is "CHILD THEME LOADED" (see below). Yet when I edit a page or a post, the correct title is still there (in fact everything about the page or post looks correct in the editor). Any ideas?

I'm testing out a theme update on our website using a staged site created by WPStaging. That part seemed to work well. Then I upgraded the theme, created a child theme from it, and applied that child them to it. Now the title of every post, page, and even menu is "CHILD THEME LOADED" (see below). Yet when I edit a page or a post, the correct title is still there (in fact everything about the page or post looks correct in the editor). Any ideas?

Share Improve this question edited Jun 15, 2020 at 8:21 CommunityBot 1 asked May 27, 2020 at 14:08 Fred HamiltonFred Hamilton 1153 bronze badges 1
  • 3 It looks like the theme has a bug that filters the_title in the event of a child theme being in place. Your best course of action is to contact the theme's author. – cjbj Commented May 27, 2020 at 14:16
Add a comment  | 

1 Answer 1

Reset to default 2

The UUA Theme offers a starter child theme which consists of an example style.css file and functions.php file. These files 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, this code in functions.php:

/**
 * 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' );

And this code in style.css:

/**
 * Below is a test to confirm this stylesheet is being applied.
 * It turns all text to all caps. DELETE this after confirmation.
 */
body {
    text-transform: uppercase !important;
}

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742395746a4435906.html

相关推荐

  • All Titles and Menus changed to "CHILD THEME LOADED"

    I'm testing out a theme update on our website using a staged site created by WPStaging.That part seemed to work w

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信