• Resolved missweblash

    (@missweblash)


    Noticed that all the stuff that should be added to the HEAD is actually being added to the BODY element, with the HEAD element completely empty.

    Anyone else getting this problem?

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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.

    Thread Starter missweblash

    (@missweblash)

    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           https://codex.www.ads-software.com/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="https://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>

    Thread Starter missweblash

    (@missweblash)

    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 ??

    Thread Starter missweblash

    (@missweblash)

    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.

    Thread Starter missweblash

    (@missweblash)

    Thanks for that tip ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘HEAD element empty’ is closed to new replies.