Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
li to not include "current" class?
#1
Hi all, just installed GetSimple and so far so good with importing my theme in.

There's just one issue I've come across so far and that is with the navigation. In the HTML mark-up I had the following:

Code:
<ul class="Navigation">
<li class="current"><a href="#" title="Homepage"><b>Home</b></a></li>
<li><a href="#" title="Link 1"><b>Link 1</b></a></li>
<li><a href="#" title="Link 2"><b>Link 2</b></a></li>
<li><a href="#" title="Link 2"><b>Link 2</b></a></li>
<li><a href="#" title="Link 2"><b>Link 2</b></a></li>
</ul>

This used CSS for the a:hover of the links to have the same CSS as "current" which gave a rollover effect.

Currently with GetSimple the list's current class would change to class="current index", class="current about" etc. Is there anyway I can stop this to just get it back to "current"?

I've found the following PHP code in theme_functions.php in admin/inc, though I'm hopeless with PHP and haven't a clue how to change it.

Code:
if ($page['menuStatus'] == 'Y') {
                if ("$currentpage" == "$url_nav") { $classes = "current". $page['parent'] ." ". $url_nav; } else { $classes = trim($page['parent'] ." ". $url_nav); }
                if ($page['menu'] == '') { $page['menu'] = $page['title']; }
                if ($page['title'] == '') { $page['title'] = $page['menu']; }
                $menu .= '<li class="'. $classes .'"><a href="'. find_url($page['url'],$page['parent']) . '" title="'. strip_quotes($page['title']) .'">'.$page['menu'].'</a></li>'."\n";
            }

MTIA
Reply


Messages In This Thread
li to not include "current" class? - by TheController - 2011-11-16, 12:28:14
li to not include "current" class? - by Connie - 2011-11-16, 16:06:30
li to not include "current" class? - by mvlcek - 2011-11-16, 21:56:58
li to not include "current" class? - by mvlcek - 2011-11-17, 05:24:11



Users browsing this thread: 1 Guest(s)