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="https://totalphysiqueonline.com">Home</a>
<li class='level1'><a href='https://totalphysiqueonline.com/about/' title='About'>About</a>
<li class='level1'><a href='https://totalphysiqueonline.com/advertise/' title='Sponsors'>Sponsors</a>
<li class='level1'><a href='https://totalphysiqueonline.com/body-buddy/' title='Body Buddy'>Body Buddy</a>
<li class='level1'><a href='https://totalphysiqueonline.com/spotlight/' title='Spotlight'>Spotlight</a>
<li class='level1'><a href='https://totalphysiqueonline.com/photographic-phun/' title='PictureThis'>PictureThis</a>
<li class='level1'><a href='https://totalphysiqueonline.com/contact/' title='Contact'>Contact</a>
<li class='level1'><a href='https://totalphysiqueonline.com/disclaimer/' title='Disclaimer'>Disclaimer</a>
</div>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="https://totalphysiqueonline.com">Home</a>
<li class=' current' ><a href='https://totalphysiqueonline.com/about/' title='About'>About</a>
<li class='' ><a href='https://totalphysiqueonline.com/sponsors/' title='Sponsors'>Sponsors</a>
<li class='' ><a href='https://totalphysiqueonline.com/body-buddy/' title='Body Buddy'>Body Buddy</a>
<li class='' ><a href='https://totalphysiqueonline.com/spotlight/' title='Spotlight'>Spotlight</a>
<li class='' ><a href='https://totalphysiqueonline.com/photographic-phun/' title='PictureThis'>PictureThis</a>
<li class='' ><a href='https://totalphysiqueonline.com/contact/' title='Contact'>Contact</a>
<li class='' ><a href='https://totalphysiqueonline.com/disclaimer/' title='Disclaimer'>Disclaimer</a>
</div>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>
<?php
if(function_exists("wp_andreas09_nav")) {
wp_andreas09_nav("sort_column=menu_order&list_tag=0&show_all_parents=1&show_root=1");
}
?>
</div>which seemingly looks correct.
Can anyone see an error here that I am missing?
- The topic ‘Page Buttons have failing PHP controls in wp-andreas09’ is closed to new replies.