Viewing 11 replies - 16 through 26 (of 26 total)
  • Kafkaesqui

    (@kafkaesqui)

    Bad? It’s what’s causing the duplication, so yeah I’d call it bad.

    Thread Starter shutterbug

    (@shutterbug)

    OK. How can it be corrected? None of this happened until I installed and fooled with the <?php wp_head(); ?>.

    Isn’t that odd? Even deleting it doesn’t correct the problem.

    Thread Starter shutterbug

    (@shutterbug)

    What about if I just deleted the duplication in the index?
    Do you think that would help?

    Kafkaesqui

    (@kafkaesqui)

    shutterbug, this is what the original index.php template from Andreas 04 looks like:

    https://wordpress.pastebin.ca/248783

    The page.php template varies somewhat, mainly in The Loop section, but the <head> element is the same.

    Thread Starter shutterbug

    (@shutterbug)

    Wow. I copied the <head> element and it worked. Thank you so very much.

    Now, I still have a problem with the Pages such as Content, Buy my Stuff and About.

    When you click on them, you get 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

    Kafkaesqui

    (@kafkaesqui)

    Yeah, just turn the plugin back on everyone (but me!) was earlier suggesting you turn off…

    Thread Starter shutterbug

    (@shutterbug)

    Oh, I fixed the fatal error thing by editing the page.php on my server the same as you showed me. Now it looks OK.

    OK, I’ll give the plugin another go. I’ll cross my fingers and let you know how it went.

    Thanks for everything.

    Thread Starter shutterbug

    (@shutterbug)

    Everything is working perfectly. Thanks for all your help.

    Thread Starter shutterbug

    (@shutterbug)

    I spoke too soon. If you click on any of the “Recent Posts” you still get the double headers.
    I’m afraid to screw around the coding again, lest I really do serious damage.
    Can you help?
    https://www.ceconn.com/canwetalk

    Kafkaesqui

    (@kafkaesqui)

    The theme also sports a single post template (single.php). Just apply the same fix to that.

    I got error using <?php wp_head(); ?>

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

    <?php get_header(); ?>
    Here my code:
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>
    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
    <?php wp_head(); ?>
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <link href=”style.css” rel=”stylesheet” type=”text/css” />
    <!– Start of StatCounter Code –>
    <script type=”text/javascript”>
    var sc_project=2839653;
    var sc_invisible=0;
    var sc_partition=28;
    var sc_security=”8ea5da2c”;
    </script>

    <script type=”text/javascript” src=”https://www.statcounter.com/counter/counter_xhtml.js”></script><noscript><div class=”statcounter”><img class=”statcounter” src=”https://c29.statcounter.com/2839653/0/8ea5da2c/0/&#8221; alt=”page hit counter” /></div></noscript>
    <!– End of StatCounter Code –>
    </head>
    <body>
    <?php get_header(); ?>

    <div id=”page”>
    <!– header [-]–>
    <div id=”header”>

    <form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>
    <p class=”text_s”>
    <input type=”text” value=”Search” name=”s” id=”s” class=”search-box” onfocus=”if (value ==’Search’){value =”}” onblur=”if (value ==”){value=’Search’}” /><input type=”submit” id=”searchsubmit” value=”” class=”search-button” /></p>
    </form>

    <p>/” title=”Home”>
    <?php bloginfo(‘name’); ?>

    <span id=”span”>
    <?php bloginfo(‘description’); ?>
    </span></p>
    </div>
    <!– header [+} –>
    <div id=”menu”>

      <li <?php if(is_home()){echo ‘class=”current_page_item”‘;}?>>/” title=”Home”>Home
      <?php wp_list_pages(‘title_li=&depth=1&’.$page_sort.’&’.$pages_to_exclude)?>

    </div>

    PLZ Write the rite code

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