This is your browser’s attempt to avoid invalid markup. Your echo ' test';
outputs something that does not belong in a head
tag, so the browser closes it and opens the body
tag. If you look at the actual unprocessed response from the server, it won’t appear this way, but that echo
shouldn’t be there regardless, and this issue will disappear when you remove it.
Related Posts:
- WordPress Code Flow
- How can i get the name parameter defined in get_header?
- Is there a way to read or list wp_head() contents?
- Multi-page posts do not get indexed by Google due to canonical URLs
- Remove rel=’dns-prefetch’ href=’//maps.google.com’ from wp-head
- How to remove pingback from head?
- Change dns-prefetch to preconnect for external enqueued resources
- How to remove unnecessary elements in the HTML document head
- wp_head() not including styles and javascripts after a template redirect
- Removing Visual Composer head meta (works alone but not with IF)
- removing wordpress generated code from the head section?
- Change default s.w.org dns-prefetch resource hint value
- using wp_head in body tag for css style
- Use wp-load() and wp_head() to render a page’s header outside of WordPress
- Set title of page using custom page template
- How do I add a logo to my website?
- Set up description meta automatically
- How to find which plugin is outputting Open Graph tags to
- Why would wp_head() cause the menus to break?
- wp_head function outputs after
- Remove_action inside a function
- Does adding a callback like this to wp_head allows you to add additional content?
- How can i remove JUST Description tag from wp_head() function?
- Custom page with WP Header showing Page not found title
- Getting the contents of wp_head while in admin?
- Wp_head () affecting my images layout
- How to add meta tags inside single image page?
- How to store wordpress functions (wp_head(),wp_footer()) in a javascript variable?
- “Warning: count()” printing in Page templates
- How can I edit a meta description
- Hide page name in wordpress page title
- Is it possible to add post specific info in head of worpress post for OG use
- Unable to apply selective loading
- why php tag is not working if i store and show it in wp_head?
- output specific location in the header
- Data validation for inline javascript
- Add OG meta tags to wp head
- How to Link External jQuery/Javascript files with WordPress
- Remove meta robots tag from wp_head
- Caching and Versioning for rtl.css
- Two title tags in my header
- Change Page’s Tag Using functions.php File
- How can I reduce the amount of files loaded/included per plugin?
- when should an action be added to init and when should it be added to wp_head
- Display custom_background outside wp_head()
- Putting content into header.php without using wp_head
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- Change meta tags programatically
- Change dns-prefetch to preconnect with correct protocol
- Using auth_redirect returns cannot modify header information
- Why does wp_enqueue_script ignore my ‘wp_head’ hook?
- wp_head() remove redundant scripts?
- Manually add admin bar
- Indenting (tabbing) WP_head
- Move all the JS files to the bottom|footer, the right way
- Add HTML to single post tag
- add action wp_head not working
- Remove all theme CSS & JS from wp_head (but only for 1 page template)
- Is possible dequeue/remove style from wp_footer() hook and add on wp_head() hook?
- action hook wp_head higher priority as all other plugins/hooks
- wp_head() – list hooked actions with priorities?
- Custom plugin – $post_id in wp_head
- Why wp_head() function not loading style.css?
- Modifying meta tags after doing ajax call in plugin
- How do I test my localhost WordPress project with VirtualBoxVM?
- wp_head function not outputting
- How can I add Javascript in the header of all post pages and only post pages
- How to disable/enable specific plugins for a mobile theme?
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Custom script file enqueue has “?ver=4.5.1” when loading and doesn’t update
- How to get a single hook from wp_head()?
- How to hook into container
- Why does WP load so many files in the head of source code? How do I optimize it?
- How to load a stylesheet into wp_head from a custom widget?
- Adding Plugin Assets to Header
- How to manipulate the content within wp_head
- How can I pass a shortcode value to the head in wordpress functions.php
- Different favicon on different pages
- Grab ID from post from plugin and use it to create an object
- How to style injected code in header section?
- Where are the contents of WP_Head
- How to use only scripts from new theme?
- How to replace the existing metatag using the backend to insure a thumbnail image gets fetched when we share on social media?
- We are facing this error in header unable to understand the issue
- i create functions.php in plugin files but add_action (‘wp_head’, ‘function_name’) don’t work
- Remove style tags from head
- How do I get a reference to the HTML memory buffer while the page is being constructed?
- Edit meta fields from within template
- How to check widget-cpt meta and display its custom css in the head?
- custom COOKIE on custom page
- How can I remove the site URL from enqueued scripts and styles?
- Best use adding user generated JS/CSS to a theme with a plugin
- Removing action from template class
- Echo a div to header.php from functions.php
- How can a ‘scripts’ directory be hooked into wp_head();?
- Particular meta tag – viewport – insertion when dealing with plugin
- Use WordPress Built In Jquery
- Reading the inside of
- Why callback function is not working in wp_head hook?
- How to modify default tags in wp_head()