Search…

X3 Photo Gallery Support Forums

Search…
 
bphotos
Experienced
Topic Author
Posts: 39
Joined: 11 Mar 2013, 08:01

Hide menu not for all pages

02 Apr 2018, 04:18

I need to hide menu on different pages.
I need to hide menus on individual pages of different clients so they can't see the menu.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: Hide menu not for all pages

02 Apr 2018, 13:59

You mean after login?
 
bphotos
Experienced
Topic Author
Posts: 39
Joined: 11 Mar 2013, 08:01

Re: Hide menu not for all pages

03 Apr 2018, 17:13

For example. I hide this folder
 
https://www.dropbox.com/s/ueir01z3ar74c ... 5.png?dl=0
After I sent it link to my client and I need hide all my menu from him.
 https://www.dropbox.com/s/24p9yaq84x6jl ... 5.png?dl=0
Even though he can delete this part of link and open general page, but not everyone will do it ;)
https://www.dropbox.com/s/7kdkkesve2xre ... 4.png?dl=0
I can't put password or do private this page. This page have to public.

TIA
 
bphotos
Experienced
Topic Author
Posts: 39
Joined: 11 Mar 2013, 08:01

Re: Hide menu not for all pages

03 Apr 2018, 20:16

No, I don’t mean after login. I want to sent for my clients individual pages without any passwords and without menu just page.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: Hide menu not for all pages

04 Apr 2018, 01:28

bphotos wrote:No, I don’t mean after login. I want to sent for my clients individual pages without any passwords and without menu just page.
This would be a bit more logical. You can remove the entire TOPBAR/MENU for any specific page. Navigate to the page Settings > Page, scroll down and open "Advanced", insert "no-header" in the "page body classes". Save.
Image

The page where you added this class will now only contain the page content, and not the menu/topbar etc. You can also add "no-footer" if you also wish to exclude the footer, so that there is only the page content (gallery) itself.

Of course, this means the visitor cannot navigate away from the page from any menu. Not sure if this is exactly what you are looking for, but you can't really toggle some menu items on/off depending on what page is currently visited. I don't really see the point of that either, since hidden items will be available again for the same visitor when they navigate to another page anyway. It would be technically possible to show/hide some menu items globally based on a user (login), but would be complicated to implement (for us) and to setup (for you).