WordPress User Experience: Dynamic Log in, Log Out

About Brock Nunn

Brock Nunn is a web designer and developer specializing in building custom WordPress for over three years. Brock operates through his company Brock Nunn Web Design offering clients personal service with outstanding results. You can follow Brock on twitter @banunn.

One Comment

  • Mark says:

    Hi Brock,

    Can you perhaps tell me how I get my Sing Up & Sign In menu items to disappear after a user logs in?

    Below is my code.

    Sign Up

    Sign In

    Remember me

    function wp_attempt_focus(){
    setTimeout( function(){ try{
    d = document.getElementById(‘user_login’);
    d.focus();
    d.select();
    } catch(e){}
    }, 200);
    }

    wp_attempt_focus();
    if(typeof wpOnload==’function’)wpOnload();

    $(document).ready(function()
    {
    //Handles menu drop down
    $(‘.dropdown-menu’).find(‘form’).click(function (e) {
    e.stopPropagation();
    });
    });

Leave a Reply

What is 9 + 2 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)
Start planning your project today. Get Started