Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to make a menu like the one on this site?

Got a bit further, this is my menu code now:

<div id="navigation">

<ul id="menu">

<!-- To show "current" on the home page -->

<li<?php

if ( is_front())

{

echo " id="current">";

?>

<a href="about.php">About</a>

<?php

}

?></li>

<!-- To show "current" on the forum page -->

<li<?php

if ( is_front())

{

echo " id="current">";

?>

<a href="<?php option('uri'); ?>">Forums</a>

<?php

}

?></li>

</ul>

</div>

I know with if ( is_front()) i determine that I am on the front-page, but how to call my About page? It’s called about.php.

Sec when I am on the front page the Forums button is highlighted, but as soon as i go read a topic, the whole menu disappears. Why is that? the menu should stay and the forums button highlighted (cause I am still in tjhe forum)

Some help plz

Skip to toolbar