Support » Themes and Templates » Page Buttons have failing PHP controls in wp-andreas09

  • Along the top of my blog, there is a row of buttons for each of the 7 pages I have.

    The html output for the home page looks like this:

    <div id="mainmenu">
    <ul class="level1">
    <li class="current"><a href="">Home</a>
    <li class='level1'><a href='' title='About'>About</a>
    <li class='level1'><a href='' title='Sponsors'>Sponsors</a>
    <li class='level1'><a href='' title='Body Buddy'>Body Buddy</a>
    <li class='level1'><a href='' title='Spotlight'>Spotlight</a>
    <li class='level1'><a href='' title='PictureThis'>PictureThis</a>
    <li class='level1'><a href='' title='Contact'>Contact</a>
    <li class='level1'><a href='' title='Disclaimer'>Disclaimer</a>

    with the li class inheriting level1 or current, for the page you are on.

    If you click out of the home page, to go to any of the 7 pages I created, the pages do not validate and for good reason. The code then looks like this:

    <div id="mainmenu">
    <ul class="level1">
    <li class=""><a href="">Home</a>
    <li class=' current' ><a href='' title='About'>About</a>
    <li class='' ><a href='' title='Sponsors'>Sponsors</a>
    <li class='' ><a href='' title='Body Buddy'>Body Buddy</a>
    <li class='' ><a href='' title='Spotlight'>Spotlight</a>
    <li class='' ><a href='' title='PictureThis'>PictureThis</a>
    <li class='' ><a href='' title='Contact'>Contact</a>
    <li class='' ><a href='' title='Disclaimer'>Disclaimer</a>

    all of the sudden, li class values are empty. The single qoutes have nothing in between them to identify them, and the li current has a weird spacing for the double quotes around it.

    The code that controls this is in the header I think. It looks like this:

    <div id="mainmenu">
    <ul class="level1">
    <li class="<?php echo $highlight; ?>"><a>"><?php _e('Home','andreas09'); ?></a>
    if(function_exists("wp_andreas09_nav")) {


    which seemingly looks correct.

    Can anyone see an error here that I am missing?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Page Buttons have failing PHP controls in wp-andreas09’ is closed to new replies.