changed navbar to function with wordpress