I used to have this problem once, for me it happened because I used the wrong encoding. I also had the right sourcecode but it came out all wrong on the actual page.
Try setting your editors settings to “UTF-8 without BOM” because the BOM is what seems to be causing that error.
Sometimes it also happens if you copy and paste text from somewhere and it copies some invisible characters. Try typing the stuff yourself, and it might just work.
(there’s more people with the same problem, e.g.
https://stackoverflow.com/questions/17566119/why-are-tag-title-meta-tag-going-from-head-to-body-tag-automatically
https://stackoverflow.com/questions/14646223/header-appearing-in-body-tag-wordpress
and what I said above usually worked for them to fix it)
Related Posts:
- Versioning @import of parent theme’s style.css
- How to add code to Header.php in a child theme?
- Why does my child theme CSS get called twice?
- How do themes provide support for child themes?
- Attributing a version number to a child theme’s main stylesheet
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Why is the Child Theme Stylesheet Not Loading?
- Hiding Parent Theme
- how to call files in child theme?
- Do all files in child theme override the parent?
- Child theme showing a blank page
- Child theme preview missing
- Child Theme Performance
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- How can you change default color scheme in a Twenty Fifteen child theme?
- When activating a child theme, what core settings have to be reset ie; Custom Menus etc?
- Hwo to turn off “get_parent_theme_file_path” in child-theme?
- Enqueue styles properly in a child theme and stylesheets location
- Enqueue more than two CSS styles in a child theme functions.php
- Proper way to make a tweaked theme into child-theme setting?
- Promoting child theme to stand alone
- Activating child theme returns “active theme is broken”
- How are updates to the style.css file in child theme recognized?
- Can’t override footer.php in child theme
- Child themes & updates?
- Recommended way to load / enqueue parent and child stylesheet to enable cache busting
- Where to put custom PHP files in a child theme?
- Where is wp-content/themes folder?
- Child Theme Path Being Ignored With wp_enqueue_scripts
- Why is “get_template_directory_uri” pointing to child theme?
- ERROR MESSAGE: Missing index.php—Child Theme
- How to make child theme ignore a parent themes template
- Conditionally load child themes
- Priority loading file css in child theme
- Is my child theme working properly
- Enqueue Child CSS to Load After Bootstrap CDN
- Child theme style repeated
- bbpress change the word forum, topic, reply in the forum to another word I choose
- Overriding a parent theme folder in the child theme
- How to remove a script that was queued up in the footer in a parent theme
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- PHP loop that selects posts with a particular in-post option
- Child Theme Translations with PoEdit
- Someone created a child theme, but I need to modify it to reorder content. How do I access the child theme?
- Child theme works in local environment but is not working on remote
- Tesseract child theme loads slow [closed]
- Child Header.php Not Showing On Other Pages
- Confused about how to use wp_enqueue_style
- How to extend parent theme sections and settings to Options Tree
- Order of stylesheets in child theme
- Localize strings for translation
- Add head and body function for google tag manager in child theme
- Child theme does not load all style
- Adding a title below the logo
- Can I add customizer sections in the Twenty Seventeen theme?
- Creating child-theme from other template files
- Child theme not overriding ‘includes’ folder on server – on localhost it does
- Child style loads before all parent styles
- How Child Themes Directory works for plugins?
- child theme – moved files from twentyeleven theme to child them, now not working
- Which is the child theme and which is the parent theme?
- Storefront theme : Add Categoy to recent products section
- Show full post in category archive pages in twenty-nineteen theme
- design has been broken in WordPress child theme [closed]
- Child theme not importing parent styles
- Updating my WordPress.org version will cause my site to break… What can I do to avoid this?
- CSS stopped working after line 150 [closed]
- Override file in parent theme
- disable jscrollpane in specfic div [closed]
- Twenty ten or Twenty eleven as base for responsive child theme
- use child theme for mobile version
- How to replace function in child theme?
- Can only override parent theme styling with ‘!important’ in child style.css
- Can’t seem to get javascript code working from child theme
- Change child theme after updating parent theme
- template_include doesn’t work with child theme
- Including code from other themes in child themes
- Remove Stylesheet by URL that has not been enqueued
- How to fix error message to edit sidebar widget text on a livesite childtheme?
- Best practice when a theme already has a parent theme (so can’t create child theme)
- Child Theme Can’t Find Parent In a Folder
- Problems with child theme
- How to override styles from child theme if all the styles are in a folder?
- Alpha-store-child does not save changes
- why child theme style sheet in wordpress editor is blank?
- Installation directory for WordPress and child theme
- How to Create a Child Theme for a Site that Already has a lot of Customization?
- How to prevent funny characters on Home Page
- How to include only modifications in child theme?
- Change default header image in twenty fourteen child theme
- Child Theme > Template
- Functions.php in Child Theme – load JS
- creating a new child theme
- How to activate the child theme in WordPress?
- Selling a child-theme of twenty-thirteen is legal? [closed]
- What is __(arguments) in my functions.php
- How to override a theme template file with a child theme template file (of the same name)
- Child theme customizer preview doesn’t work/load
- theme.json should be in the child theme folder when using xxxx.json style located in the styles folder?
- Child theme css not loading when declared in parent functions