• kristenmpowell

    (@kristenmpowell)


    Hi there,

    First and foremost I’d like to say I know so very little about coding but have thus far managed to get by through trial and error over the past couple years doing minor things to the custom WordPress themes I’ve had.

    I downloaded and installed the custom theme City Dreams from Amy & Pink and despite a few stumbling blocks so far, I’ve mostly got it working pretty well.

    The issue is the header. I cannot for the life of me figure out why it’s rendering differently on different pages.

    The only page it is working correctly on is my about page, which is here: http://www.kristenpowell.com/about

    On every other page, for instance the front page (http://www.kristenpowell.com), it’s missing the second half of the menu.

    It’s set up as an unordered list that I don’t totally understand the structure of, and a lot of the linking in the original file was kind of weird and needed fixing. It didn’t work before I changed anything either, though.

    I’ve looked at in FF 3.5.18 and Safari 5.0.3 and it’s the same deal in both.

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi kristenmpowell

    Did you ever resolve this issue? I’m having the same one right now.

    If you could point me in the direction of help that would be totally amazing!

    Thread Starter kristenmpowell

    (@kristenmpowell)

    Oh man, I did fix it. It took forever and I ended up mostly rewriting it. It was awhile ago, so I don’t really remember what I did, or what it looked before I did it. So I’m just going to copy and paste the whole header file below. I hope that helps!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <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'); ?>" />

    <?php wp_head(); ?>
    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-11401188-2']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    <link rel="shortcut icon" href="?php bloginfo('template_url'); ?>/images/favicon.ico" />
    </head>
    <body>
    <div id="menu">
    <h1>"><b>KRISTEN M POWELL</b></h1>
    <div></div>

      <li <?php if ( is_page(blog) ) { ?>class="cur"<?php } else { ?><?php } ?>>/blog">BLOG
      <?php if ( is_page(blog) ) { ?> <?php } else { ?><?php } ?>
      <li <?php if ( is_page(about) ) { ?>class="cur"<?php } else { ?><?php } ?>>/about">ABOUT
      <?php if ( is_page(about) ) { ?> <?php } else { ?><?php } ?>
      <li <?php if ( is_page(work) ) { ?>class="cur"<?php } else { ?><?php } ?>>/work">WORK
      <?php if ( is_page(work) ) { ?> <?php } else { ?><?php } ?>
      <li <?php if ( is_page(contact) ) { ?>class="cur"<?php } else { ?><?php } ?>>/contact">CONTACT
      <?php if ( is_page(contact) ) { ?> <?php } else { ?><?php } ?>

    <ul style="postion:relative;left:126px">
    <li <?php if ( is_page(design) ) { ?>class="cur"<?php } else { ?><?php } ?>>/design">DESIGN
    <?php if ( is_page(design) ) { ?><?php } else { ?><?php } ?>
    <li <?php if ( is_page(writing) ) { ?>class="cur"<?php } else { ?><?php } ?>>/writing">WRITING
    <?php if ( is_page(writing) ) { ?><?php } else { ?><?php } ?>
    <li <?php if ( is_page(links) ) { ?>class="cur"<?php } else { ?><?php } ?>>/links">LINKS
    <?php if ( is_page(links) ) { ?><?php } else { ?><?php } ?>

    </div>

    You’re a star! Thanks for the speedy reply, I will try this and let you know how it goes…

    Hello – just a follow up – the code didn’t work for me when copied and pasted in its entirety as above, however when I replaced everything after <div id=”menu”> with:

    <h1><b>KRISTEN M POWELL</b></h1>
    <div></div>

    <ul style=”postion:relative;left:126px”>
    <li ><a
    <li >LINKS
    <li >DESIGN
    <li >WRITING

    </div>

    It worked like a charm! Just a few adjustments to change the page names / links etc and all is well. Thanks so much for your help 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘header rendering differently page to page’ is closed to new replies.