Hide button when user logged in via Apache htaccess and htpasswd and show when logged out in all pages
Budget: €30 – €250 EUR
Our Wordpress website protected partially with htaccess and htpasswd. I created page "Documents" and protected it by creating "documents" folder with htaccess. Everything is working, but I need only one thing.
I need to show button (Page 1) in menu in all pages only when htpasswd user logged out and hide when user logged in for all pages, also if user not in documents page.
I have for example 3 pages. 1 of this page protected with htaccess and htpasswd. Protected page name for example: documents. When user login while visiting documents and other pages then he should not see "Page 1" button. When user logged out he should see "Page 1" button everywhere in website.
2nd screenshot:
When user visit website and press Documents then he login and visit Documents page. At this moment when he login "Page 1" button should disappear. Then when user close browser and open again he logged off and should see Page 1 button.
I already have wordpress in server and one protected folder with htaccess and htpasswd.
You just need to implement the solution.
I need to show button (Page 1) in menu in all pages only when htpasswd user logged out and hide when user logged in for all pages, also if user not in documents page.
I have for example 3 pages. 1 of this page protected with htaccess and htpasswd. Protected page name for example: documents. When user login while visiting documents and other pages then he should not see "Page 1" button. When user logged out he should see "Page 1" button everywhere in website.
2nd screenshot:
When user visit website and press Documents then he login and visit Documents page. At this moment when he login "Page 1" button should disappear. Then when user close browser and open again he logged off and should see Page 1 button.
I already have wordpress in server and one protected folder with htaccess and htpasswd.
You just need to implement the solution.