Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-05-09 02:21:44

Markus
Member
From: Witten - Germany
Registered: 2012-10-06
Posts: 204
Website

Organize navigation menus on mobile devices

Hi,

I would like to optimize my navigation menus on the mobile devices https://www.mc-photografie.de

I don't like this at the moment because it is too confusing. That's because of my subpages and the 3 levels.

When I look at my navigation in portrait format on the iPad, all levels are "unfolded".
Normally it should be like on the big screen. A child menu item should unfold when I click on it. And then the next lower level if necessary.

Can I put this somewhere in the template? I haven't found that yet. Or is it only possible via CSS and/or PHP?

In my custom.css I have a section Mobile Menu. It seems to be the wrong setting or the decisive one is missing.

Do you have a tip for me?

Have a nice weekend
Markus

Offline

#2 2020-05-09 02:30:51

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Organize navigation menus on mobile devices

When I look at my navigation in portrait format on the iPad, all levels are "unfolded".
Normally it should be like on the big screen. A child menu item should unfold when I click on it. And then the next lower level if necessary.

That's not an option for mobile menus

but see if this might help
https://ttg-tips-and-tricks.barbeephoto … bile-menu/


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2020-05-09 17:12:05

Markus
Member
From: Witten - Germany
Registered: 2012-10-06
Posts: 204
Website

Re: Organize navigation menus on mobile devices

Hi Rod,

this seems to be th solution i´m looking for. When I´ll be back on my MacBook I´ll tested it. Or does a solution of the inspector exist in iOS?

BTW: In Chrome I use the extension „Window Resizer" to look for the resolution in portrait mode. Actually I don´t find an extension for firefox or Safari. Do you have a tip for some extension.

Greetings
Markus

Offline

#4 2020-05-09 17:40:20

Markus
Member
From: Witten - Germany
Registered: 2012-10-06
Posts: 204
Website

Re: Organize navigation menus on mobile devices

this works for me

#page__pallet__T1 li.menu-item:nth-child(2)>ul.sub-menu {
    display: none;
}

How would I have to change the code if I only wanted to show the first child menu in the photo gallery?

I haven't figured that out yet sad

Offline

#5 2020-05-09 22:13:52

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Organize navigation menus on mobile devices

Hi Rod,
Your code for mobile menu suppression works a treat. I find myself with more time on my hands in these days of lockdown to do things I ought to have done a while back.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#6 2020-05-09 22:15:21

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Organize navigation menus on mobile devices

Markus wrote:

this works for me

#page__pallet__T1 li.menu-item:nth-child(2)>ul.sub-menu {
    display: none;
}

How would I have to change the code if I only wanted to show the first child menu in the photo gallery?

I haven't figured that out yet sad

Just the first level below the Galleries menu item and not the rest?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2020-05-09 22:17:07

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Organize navigation menus on mobile devices

Markus wrote:

Hi Rod,

this seems to be th solution i´m looking for. When I´ll be back on my MacBook I´ll tested it. Or does a solution of the inspector exist in iOS?

BTW: In Chrome I use the extension „Window Resizer" to look for the resolution in portrait mode. Actually I don´t find an extension for firefox or Safari. Do you have a tip for some extension.

Greetings
Markus

I just either manually resize the browser window or use the tools in the browser inspector to emulate mobile devices.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2020-05-09 22:32:30

Markus
Member
From: Witten - Germany
Registered: 2012-10-06
Posts: 204
Website

Re: Organize navigation menus on mobile devices

rod barbee wrote:
Markus wrote:

this works for me

#page__pallet__T1 li.menu-item:nth-child(2)>ul.sub-menu {
    display: none;
}

How would I have to change the code if I only wanted to show the first child menu in the photo gallery?

I haven't figured that out yet sad

Just the first level below the Galleries menu item and not the rest?

Yes Rod, I would like to show only the first level below the Galleries menu (Neue Fotos | Landschaft > | Tiere | Sport)

Offline

#9 2020-05-09 22:47:11

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Organize navigation menus on mobile devices

there should be a way to do that. Which of your sites is this for?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2020-05-09 23:37:48

Markus
Member
From: Witten - Germany
Registered: 2012-10-06
Posts: 204
Website

Re: Organize navigation menus on mobile devices

rod barbee wrote:

there should be a way to do that. Which of your sites is this for?

for this site https://www.mc-photografie.de/

Offline

#11 2020-05-09 23:38:39

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Organize navigation menus on mobile devices

try this. This will assume you add no other sub-menu items below other main menu items:

#page__pallet__T1 li.menu-item ul.sub-menu ul.sub-menu .menu-item {
    display: none;
    
}

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2020-05-10 00:08:25

Markus
Member
From: Witten - Germany
Registered: 2012-10-06
Posts: 204
Website

Re: Organize navigation menus on mobile devices

rod barbee wrote:

try this. This will assume you add no other sub-menu items below other main menu items:

#page__pallet__T1 li.menu-item ul.sub-menu ul.sub-menu .menu-item {
    display: none;
    
}

Perfect! That's what I thought. Thanks Rod.

Offline

Board footer

Powered by FluxBB