Viewing 15 replies - 1 through 15 (of 26 total)
  • Hi!

    As I see you have code that is supposed to be in BODY of document in HEAD tag.

    First try disabling the plugin & reload.

    I’d imagine it’s because the *header* portion of your blog, the ‘sitetitle’ and ‘menu’ divs, is being duplicated in the <head> section.

    For that plugin to work correctly, you should be putting this in the <head> portion of your template(s):

    <?php wp_head(); ?>

    It appears you stuck in get_header(), which for that particular theme would include the divs mentioned above (they reside in header.php).

    Thread Starter shutterbug

    (@shutterbug)

    So, now what? I tried disabling the plugin and reenabling. Nothing. I entered the <?php wp_head(); ?> in the Page Template right under <head>.

    Am I to delete ‘sitetitle’ in the Page Template? I’m so confused.

    Am I supposed to delete <get_header()>? I just have to get rid of that additional header across the top. Where did that come from, I wonder?

    If I just uninstall the plugin, will it make any difference? I just want my blog to look nice again.

    This:

    <?php get_header(); ?>

    should not reside in the <head> section of your templates. It should only appear in the <body>.

    (Note for future readers: this relates to the theme Andreas 04, which has its own ideas of what goes in header.php).

    Try to disable the plugin and reload the page.

    Try to disable the plugin and reload the page.

    That will not fix this problem.

    Thread Starter shutterbug

    (@shutterbug)

    Oh, I see. Well, I’m more confused now. On this website
    http://guff.szub.net/2005/09/01/head-meta-description/&#8217; he said to put it in the Head tags.

    I did as you said and moved it to the body tags but I still have the double headings.

    Maybe my template is just not compatible with this plugin, do you think?

    This is two totally separate problems. For right now, disable the plugin and leave it disabled until you fix your layout problem.

    Then remove this <?php get_header(); ?> from the <head> section of your header file. It doesn’t go there. Take a look at that point to see where you are and then post back.

    What *should* be in the <head> of your templates:

    <?php wp_head(); ?>

    What you placed in the <head> of your templates:

    <?php get_header(); ?>

    See the difference?

    Thread Starter shutterbug

    (@shutterbug)

    Deactivated plugin. <?php get_header(); ?> wasn’t in the Header. It was in the Body section of the page template. Still have the same problem.

    [Moderated: template code snipped]

    Does that help at all?

    I just clicked on About and Contact on the Header and got this error message:
    Fatal error: Call to undefined function: head_meta_desc() in /home/cecon46/public_html/canwetalk/wp-content/themes/andreas04-10/page.php on line 5

    All of them gave the same error message.

    This is the Page Template:

    What about the theme’s index.php?

    Geesh. Should have posted all that to http://wordpress.pastebin.ca prob’ly…. in any case, it looks pretty borked to me (though I don’t use Andreas’s themes so could just not know how they work….)

    If this were me, at this point I’d upload a fresh copy of all the files in the theme folder and start over.

    Thread Starter shutterbug

    (@shutterbug)

    Here’s the Index.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="description" content="<?php bloginfo('description'); ?>" />
    <meta name="author" content="WordPress adaptation: Tara Aukerman / Original design: Andreas Viklund - http://andreasviklund.com/" />
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/style.css" />
    <title><?php bloginfo('name'); ?></title>
    <META name="verify-v1" content="7oycLsOAcX1aSppJoydGANPg1yRe86cLcWhvoW9v55k=" />
    <div id="sitetitle">
    <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    <h2><?php bloginfo('description'); ?></h2>
    </div>
    <div id="menu">
    <ul>
    <li><a href="<?php bloginfo('url'); ?>">home</a></li>
    <?php wp_list_pages('title_li='); ?>
    </ul>
    </div>
    </head>
    <body>
    <div id="container">
    <?php get_header(); ?>

    [Moderated: snip]

    Ahem…

    <META name="verify-v1" content="7oycLsOAcX1aSppJoydGANPg1yRe86cLcWhvoW9v55k=" />
    <div id="sitetitle">
    <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    <h2><?php bloginfo('description'); ?></h2>
    </div>
    <div id="menu">
    <ul>
    <li><a href="<?php bloginfo('url'); ?>">home</a></li>
    <?php wp_list_pages('title_li='); ?>
    </ul>
    </div>
    </head>
    <body>

    Ok, so the contents of header.php were copied in…

    Thread Starter shutterbug

    (@shutterbug)

    Oh, is that bad? The template came like that. I didn’t do it.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘I screwed up my header. Now I have two. Looks awful’ is closed to new replies.