In functions.php :
function myapp_register_nav_menu() { register_nav_menu('primary', 'Header Navigation Menu'); } add_action('after_setup_theme', 'myapp_register_nav_menu');
Then we develop menu in Dashboard – Appearance – Menus and add menu into header.php :
_F9J_nav_menu(array( 'theme_location' => 'primary', 'container' => false, 'menu_class' => 'nav', 'walker' => new Myapp_Walker_Nav_Primary() ));
Adding “Log In” and “Register” menu items in functions.php :
function myapp_add_loginout_navitem($items) { show_admin_bar(false); $login_item = _F9J_loginout($_SERVER['REQUEST_URI'], false); $items .= '<li class="login">' . $login_item . '</li>'; $items .= _F9J_register('<li class="login">', '</li>', false); return $items; } add_filter('_F9J_nav_menu_items', 'myapp_add_loginout_navitem');
In Dashboard – Settings – General:
Membership |
---|
Finally we have
before login:
Home | … | About us | Contact | Log In | Register
after login:
Home | … | About us | Contact | Log Out | Site Admin
I suppose it’s the native wordpress decision though I couldn’t find it.
you are my intake, I have few blogs and rarely run out from to post : (.
I would appreciate to get your post in my blog. Just register and write. All registered get “contributor” status and ability to create new post.
I saw a lot of website but I conceive this one contains something special in it in it
I consider something truly interesting about your website so I saved to fav.
some truly tremendous work on behalf of the owner of this internet site, dead outstanding subject material.
I simply had to say thanks yet again. I do not know the things I would have made to happen in the absence of those ways contributed by you relating to such a theme. It previously was a real terrifying circumstance in my circumstances, but noticing your specialized fashion you processed the issue forced me to jump with gladness. I’m happy for your information and then believe you comprehend what a powerful job that you’re getting into educating some other people through the use of a web site. I know that you have never come across any of us.
Hello, i feel that i saw you visited my website thus i came to return the desire?.I am trying to in finding issues to
enhance my web site!I assume its ok to use a few of your ideas!!