navigation menu with span
Permalink
Hi my template has a decent nav menu. using html it looks like this
<ul>
<li><a href="#" title="Link 1"><span>Link 1</span></a></li>
<li><a href="#" title="Link 2"><span>Link 2</span></a></li>
</ul>
when i replace that with C5 Php nav code - I dont see the nice boxes etc. in style.css there is :#tabs a span; and #tabs a:hover span;.
Is there some way to get this span to read in C5 nav ??
hope this isnt too newbie a question..
<ul>
<li><a href="#" title="Link 1"><span>Link 1</span></a></li>
<li><a href="#" title="Link 2"><span>Link 2</span></a></li>
</ul>
when i replace that with C5 Php nav code - I dont see the nice boxes etc. in style.css there is :#tabs a span; and #tabs a:hover span;.
Is there some way to get this span to read in C5 nav ??
hope this isnt too newbie a question..
![12345j](/files/avatars/27444.jpg)
what are you placing it? im pretty sure you should be doing it for the second version of Link 1, not the first or both. the first is the css link anyway.
i have a custom template you can use, recoded it for 5.4.1, didn't get to test,
if you need it for an earlier version let me know
<? defined('C5_EXECUTE') or die("Access Denied."); $aBlocks = $controller->generateNav(); $c = Page::getCurrentPage(); $containsPages = false; $nh = Loader::helper('navigation'); //this will create an array of parent cIDs $inspectC=$c; $selectedPathCIDs=array( $inspectC->getCollectionID() ); $parentCIDnotZero=true; while($parentCIDnotZero){ $cParentID=$inspectC->cParentID; if(!intval($cParentID)){ $parentCIDnotZero=false; }else{
Viewing 15 lines of 73 lines. View entire code block.
if you need it for an earlier version let me know