- This topic has 7 replies, 3 voices, and was last updated 10 years, 6 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember – Add login as part of main menu
Tagged: menu, responsive menu
I’m making a responsive version of an existing site. For the desktop I have the regular visitor menu and the alternative logged-in menu in a sidebar. However, for the mobile version, we won’t use the sidebar, just the main menu that includes all the page links.
Right now, login doesn’t change to logout, plus I don’t know how I would show or hide the member-only items that should show up underneath.
Is it possible to do it this way or will I need to come up with another workaround?
You want to do something similar to what I have on a client’s mobile site. In this scenario, the visitor is presented with a “Start Screen” full of faux Windows Phone tiles.
[emember_protected scope=not_logged_in_users_only]
Display a “Login” tile.
[/emember_protected]
[emember_protected scope=verified_users_only do_not_show_restricted_msg=1]
Display a “Logout” tile.
[/emember_protected]
That sounds great, but won’t fit the requirements I’ve been given for the site. Is there no way to handle it with the regular wp menu? That would be best, but I imagine I could convert the sidebar menu to a select menu (showing only for logged in users).
The examples in the following post should be helpful:
I’m using that technique already when the sidebar is showing, but for mobile it’s not showing. Sounds like I can’t have the logged in items just be part of another menu? That would be ideal. Otherwise I’ll have to come up with a work around.
Could I create another menu for logged-in members only that would include just the private items and have that show on mobile only? Would there be any conflict with the existing one?
There will be no conflict from our end. How your theme deals with that is not something I can predict.
OK – thanks. I created the theme, so I should be able to work it out.