Sometimes, we can’t always use the Menu creator built in to WordPress 3.0. The two main difficulties I had were firstly that I couldn’t assign links classes, and secondly I couldn’t chuck in a login OR logout button.
My fix was to not use the menu creator at all, and manually create my menu. I then used a php if statement to display a login if the user is logged out, and a logout if they’re logged in. I was also then able to assign different links classes.
So, this is how my menu code looks:
There may be other ways of doing this whilst still being able to use the menu creator, possibly by using hooks – if you know of other ways of achieving the same result please do share!
I’m sure anyone good with WordPress already knows how to do all this, but as I’ve figured it out myself I thought I’d share my method, just in case anybody else needs to do something similar.
Anyway you can see the end result on a site I’m working at: clicky clicky
Viewing 1 post (of 1 total)
The forum ‘CSS’ is closed to new topics and replies.