How to create a Logout menu?
-
Hi everyone,
I’ve created a series of menus for my wordpress site that allow users to login and Recover their passwords, but no matter what I try I can’t seem to create a logout menu that achieves what I need.I’ve created a custom Login menu with the following URL: https://www.mywebsite.co.uk/?page_id=6&login
A custom lost password menu with the following URL: https://www.mywebsite.co.uk/?page_id=6&action=lostpassword
and a custom Logout menu with the following URL: https://www.mywebsite.co.uk/?page_id=6&action=logout
They all work fine, except when I click the Logout menu it takes me to an empty white page in my browser window with the words:
You are attempting to log out of My Web Site
Do you really want to log out?The words ‘log out’ are hyperlinked in order to click and log out of the site, but I really want a user to be instantly logged out when they click the Logout menu and then automatically redirect them back to the home page.
It doesn’t seem to matter what I enter into the custom menu URL for the Logout link (I’ve tried loads of variations) it either fails to work completely, or I get this white page filling the whole of my browser window first and I don’t know how to stop this from happening.
Can anyone offer any insight please, I’m pulling my hair out over this!
Kind Regards,
Wayne
- The topic ‘How to create a Logout menu?’ is closed to new replies.