WordPress.org

Ready to get started?Download WordPress

Forums

Responsive
[resolved] HEAD element empty (10 posts)

  1. Missweblash
    Member
    Posted 1 year ago #

    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?

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    That's NOT in the original Responsive theme files. What have you modified? Or what plugins are you using?

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    A link to your site would be relevant.

  4. Missweblash
    Member
    Posted 1 year ago #

    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.

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    Where did you get that theme from?

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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.wordpress.org/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>
  7. Missweblash
    Member
    Posted 1 year ago #

    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 :D

  8. Missweblash
    Member
    Posted 1 year ago #

    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?

  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Try resetting the plugins folder - change the name on the plugins folder to "pluginsHOLD" for a minute or two.

  10. Missweblash
    Member
    Posted 1 year ago #

    Thanks for that tip :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic