That’s NOT in the original Responsive theme files. What have you modified? Or what plugins are you using?
A link to your site would be relevant.
1) I haven’t changed anything – it’s a clean install
2) My site isn’t online yet.
3) I’m using a variety of plugins, but have deactivated all of them and the empty <head> tag problem persists.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Where did you get that theme from?
Perhaps compare your header.php file to this brand new (partial) download:
<?php
// Exit if accessed directly
if ( !defined('ABSPATH')) exit;
/**
* Header Template
*
*
* @file header.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2013 ThemeID
* @license license.txt
* @version Release: 1.3
* @filesource wp-content/themes/responsive/header.php
* @link http://codex.ww.wp.xz.cn/Theme_Development#Document_Head_.28header.php.29
* @since available since Release 1.0
*/
?>
<!doctype html>
<!--[if !IE]> <html class="no-js non-ie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 9 ]> <html class="no-js ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title><?php wp_title('|', true, 'right'); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_enqueue_style('responsive-style', get_stylesheet_uri(), false, '1.9.3.2');?>
<?php wp_head(); ?>
</head>
Holy moly, this has been painful to debug!
Turned out to be an issue with an SEO plugin which had been working perfectly on all my themes up until a recent update.
Have notified them of the fact it’s injecting invalid markup. Tut tut!
Thanks for your help anyways 😀
I meant to add, that the SEO plugin in question was persisting even after de-activation, I’m not sure why that would be and I’ve never encountered that before. Should I report that to WP themselves?
Try resetting the plugins folder – change the name on the plugins folder to “pluginsHOLD” for a minute or two.