Sub-menu not appearing in mobile phone Topic is solved

Everything to do with Joomla! 4.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
mawia
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Mon May 05, 2008 11:33 am

Sub-menu not appearing in mobile phone

Post by mawia » Mon May 29, 2023 6:15 pm

The sub-menu (dropdown menu) on my site https://trcollege.edu.in/ cannot appear when browsing from mobile phone and tablets. In the menu item type I set it as 'Url' with link '#' but these menus are not responsive to touch on mobile phones. So all the sub-menu or drop down menus cannot be accessed.

Everything is ok on desktop. The site is using joomla 4.3.1 and T4 blank bs5. And when I enabled off-canvas in the template the hamberger menu appears but onle blank. Can anyone help me.

User avatar
xfsgpr
Joomla! Ace
Joomla! Ace
Posts: 1099
Joined: Mon Feb 14, 2011 4:02 am
Location: London

Re: Sub-menu not appearing in mobile phone

Post by xfsgpr » Tue May 30, 2023 7:34 pm

You need to post a screenshot of what you are seeing. I am seeing this on my desktop minimized to resemble a mobile phone:

Image

mawia
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Mon May 05, 2008 11:33 am

Re: Sub-menu not appearing in mobile phone

Post by mawia » Tue May 30, 2023 8:35 pm

Thanks for responding. On mobile phone and tablet the menus with submenus are not expanding the drop down menus, nothing happens when touched.
You do not have the required permissions to view the files attached to this post.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1345
Joined: Tue Jun 30, 2020 12:17 pm

Re: Sub-menu not appearing in mobile phone

Post by Pavel-ww » Wed May 31, 2023 7:12 am

mawia wrote:
Tue May 30, 2023 8:35 pm
Thanks for responding. On mobile phone and tablet the menus with submenus are not expanding the drop down menus, nothing happens when touched.
Hi. Turn OFF any caching, compression and clean the cache of these options, the Joomla cache and the cache of your browser. Then check. When editing the site, all these things should always be OFF. After you finish editing, clean the cache and turn on these options again.

If the problem remains and you want to get help on the forum, turn off all these options so that we can explore the code of your site, until the problem is resolved.

The main rule is - if you ask a question on the forum and provide a link, always turn off any caching and compression.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30312
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Sub-menu not appearing in mobile phone

Post by Per Yngve Berg » Wed May 31, 2023 7:37 am

mawia wrote:
Mon May 29, 2023 6:15 pm
In the menu item type I set it as 'Url' with link '#' but these menus are not responsive to touch on mobile phones. So all the sub-menu or drop down menus cannot be accessed.
This was a hack in J3.x and does not work in J4.x. There are menu item types for this "Divider" and "Separater ".

mawia
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Mon May 05, 2008 11:33 am

Re: Sub-menu not appearing in mobile phone

Post by mawia » Wed May 31, 2023 8:15 pm

I have disabled system cache and Gzip page compression. I also played around with the menu type to separator and heading. Still the sub menus don't appear in mobile phones.

User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1345
Joined: Tue Jun 30, 2020 12:17 pm

Re: Sub-menu not appearing in mobile phone

Post by Pavel-ww » Thu Jun 01, 2023 8:13 am

mawia wrote:
Wed May 31, 2023 8:15 pm
I have disabled system cache and Gzip page compression. I also played around with the menu type to separator and heading. Still the sub menus don't appear in mobile phones.
Hi. Your mobile menu works very strangely. The sub items are opened when the hover over on parent item. Moreover, this is implemented through JS. You can check this by using responsive testing in the dev tools.
1.jpg
--
But there is no mouse cursor on the mobile, so it does not work there. On mobile, this should work via ON CLICK event, but not via MOUSOVER event (on hidden.bs.dropdown - custom event from developers in your case).

I believe that the mobile menu has bugs from developers, so you should contact to T4 support for clarification.
Or you can fix it yourself if you have javascript skills
--

For moderators. I think this question refers to templates but not Joomla.
You do not have the required permissions to view the files attached to this post.

mawia
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Mon May 05, 2008 11:33 am

Re: Sub-menu not appearing in mobile phone

Post by mawia » Thu Jun 01, 2023 12:14 pm

Thank you for replying. In T4 BS5 template there are two options to show the menu (with hamburger menu) on mobile phone/tablet, one is by enabling 'show on small screen' the other is by enabling 'off canvas' in the template styles. I used the former but since the submenu cannot appear, I made a new menu module and published it in the off-canvas module position.

Then I enabled the off-canvas option in the template styles, now the menus and sub-menus are showing without dropdown. Although the menu display is not as I like it to be, anyway this is better, now that users can access the sub menu from their phones/tablets.


Post Reply

Return to “Templates for Joomla! 4.x”