5.6.0.1 Autonav classes are blank
Permalink
Hi, fresh install of 5.6.0.1. Stock site, autonav is not displaying any classes. It is showing class="" for both li's and a href's. Any ideas why the classes aren't populating?
Also, just to check, I tried Jordan's awesome autonav view.php code and it wasn't displaying class names either.
Thanks!
Also, just to check, I tried Jordan's awesome autonav view.php code and it wasn't displaying class names either.
Thanks!
Yes, below is a copy/paste of exactly what displays:
<ul class="nav-header">
<li class="nav-selected nav-path-selected first">
<a class="nav-selected nav-path-selected first" href="/" target="_self">Home</a>
</li>
<li class="">
<a class="" href="/about/" target="_self">About Us</a>
</li>
<li class="">
<a class="" href="/services/" target="_self">Services</a>
</li>
<li class="">
<a class="" href="/resources/" target="_self">Resources</a>
</li>
<li class="">
<a class="" href="/contact/" target="_self">Contact Us</a>
</li>
<li class="">
<a class="" href="/blog/" target="_self">Blog</a>
</li>
</ul>
<ul class="nav-header">
<li class="nav-selected nav-path-selected first">
<a class="nav-selected nav-path-selected first" href="/" target="_self">Home</a>
</li>
<li class="">
<a class="" href="/about/" target="_self">About Us</a>
</li>
<li class="">
<a class="" href="/services/" target="_self">Services</a>
</li>
<li class="">
<a class="" href="/resources/" target="_self">Resources</a>
</li>
<li class="">
<a class="" href="/contact/" target="_self">Contact Us</a>
</li>
<li class="">
<a class="" href="/blog/" target="_self">Blog</a>
</li>
</ul>
Well i might be wrong but it think this is the correct output auto-nav with header menu template only adds the classs for;
nav-selected nav-path-selected first
ie. the list item selected and also for first item in the list
so it is working correctly
if you want to add extra classes you can change the code
<li class="new-class-here <?php echo $classes?>">
<a class="<?php echo $classes?>" href="<?php echo $ni->url?>" target="<?php echo $ni->target?>"><?php echo $ni->name?></a>
or create a new template.
or just use the tags "il" "a" in css to add style.
nav-selected nav-path-selected first
ie. the list item selected and also for first item in the list
so it is working correctly
if you want to add extra classes you can change the code
<li class="new-class-here <?php echo $classes?>">
<a class="<?php echo $classes?>" href="<?php echo $ni->url?>" target="<?php echo $ni->target?>"><?php echo $ni->name?></a>
or create a new template.
or just use the tags "il" "a" in css to add style.
Does the <ul class="nav-header"> show up?