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.
You are not logged in.
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
https://www.mc-photografie.de - Backlight 3
https://bl3.mc-photografie.de - Backlight 3 Testsite
http://backup.der-canonier.de - Backlight 2
Offline
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
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
https://www.mc-photografie.de - Backlight 3
https://bl3.mc-photografie.de - Backlight 3 Testsite
http://backup.der-canonier.de - Backlight 2
Offline
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
https://www.mc-photografie.de - Backlight 3
https://bl3.mc-photografie.de - Backlight 3 Testsite
http://backup.der-canonier.de - Backlight 2
Offline
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
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
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
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
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
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)
https://www.mc-photografie.de - Backlight 3
https://bl3.mc-photografie.de - Backlight 3 Testsite
http://backup.der-canonier.de - Backlight 2
Offline
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
there should be a way to do that. Which of your sites is this for?
for this site https://www.mc-photografie.de/
https://www.mc-photografie.de - Backlight 3
https://bl3.mc-photografie.de - Backlight 3 Testsite
http://backup.der-canonier.de - Backlight 2
Offline
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
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.
https://www.mc-photografie.de - Backlight 3
https://bl3.mc-photografie.de - Backlight 3 Testsite
http://backup.der-canonier.de - Backlight 2
Offline