General Community > WebsiteBaker Website Showcase

my first wb site

<< < (3/3)

pcwacht:

--- Quote ---I hate having live links in a nav menu to the page you are already viewing, I know there are some advanced menus made by people here, but I don't think any of them do this?
--- End quote ---


Nope, didn't do a whole new menu again, just a litle change ... ;)

Get this improved menu : http://www.WebsiteBaker.org/2/forum/?topic=777.1
add it to the beginning of your template's index.php

change:

--- Code: ---// Create values
if($page['page_id'] == PAGE_ID) {
$values = array($class, , , stripslashes($page['menu_title']), stripslashes($page['page_title']));
} else {
$values = array($class, '<a href="'.$link.'" target="'.$page['target'].'">', '</a>', stripslashes($page['menu_title']), stripslashes($page['page_title']));
}
// Replace vars with value and print
--- End code ---

and voila, your done

No link on current page.

Have fun!
John

clarkin:
wow  :-o
I'll give that a try tonight, thank you vey much again pcwacht!

mysticcowboy:
Even if you didn't do the Photoshop, it's still an excellent job of both converting a design and doing it with all CSS.

Navigation

[0] Message Index

[*] Previous page

Go to full version