Child Theme Custom header.php breaking WP Admin Dashboard
-
Hi All,
I’m having such a weird issue. I created a child theme and using functions.php to call in my custom header (which is located in the same folder as the child theme), however, when it calls the custom header.php my dashboard is broken and shows partial design of what I’ve added and changed as well as broken code. The header only consists of a javascript and 3 divs (all divs that opened are closed [ just added a heading and another div for bottom border). This was added at he bottom of the header.php.
[javascript entered]
[main div open]
[border div open] [border div close]
[heading title open] [heading title close]
[main div close]when I use functions to require once my header.php in the child theme folder, that’s when everything breaks on dashboard.
require_once( get_stylesheet_directory() . ‘/header.php’ )
when I delete that line from my functions.php everything turns out fine but of course I don’t have my custom header with the title, javascript navigation and the bottom border line.
Any help would be greatly appreciated as I’ve been trying to tackle this for almost a week and it’s got me stumped.
The topic ‘Child Theme Custom header.php breaking WP Admin Dashboard’ is closed to new replies.