When you specify no secondary (or primary I guess) links you will get the following code:

And your page won't validate as valid XHTML 1.0 Transitional. This can be solved by adapting page.tpl.php.

Change:
line 31 if (is_array($secondary_links)) :
Into:
line 31 if (count($secondary_links)) :

And:
line 39 if (is_array($primary_links)) :
Into:
line 39 if (count($primary_links)) :

HTH

Comments

adrinux’s picture

Assigned: Unassigned » adrinux

Your code got lost, but I assume it's something like:

<div id="top-nav">
      <ul id="secondary">
        </ul>
  	
	    <ul id="primary">
        </ul>
  </div>

Those empty ul's being invalid. Since I either have links or remove the ul entirely when modifing the theme I hadn't seen this :)

Thanks, I'll look to correcting this when I next update box_grey, though a patch is much appreciated rather than the in page code...hint hint.

adrinux’s picture

fixed in 4.6