1. markus
  2. Commercial Templates
  3. Monday, 02 January 2023
  4.  Subscribe via email
Good day
I'm trying to set a function in the "Emani" template in mobile navigation that doesn't exist. Maybe I'm just being stupid.
Apparently some users are confused.
If you click on a menu item in the page navigation (mobile navigation), the one-page drives to the correct area of the website, but remains visible and covers a large part of the page. You can only see this on a mobile device, I was never able to reproduce the effect on a desktop PC.
Is there a function that closes the mobile navigation after clicking?

Kind regards Markus
References
  1. https://paar-gestalten-koeln.de
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Markus

To amend try adding the following to the Head Custom Code field of your templates parameters (Extensions -> Template Manager -> YourTemplate -> Custom Code -> Head Custom Code)...

<script>
document.addEventListener("DOMContentLoaded", function() {
document.querySelector('.mobile-menu')
.addEventListener('mouseup', (evnt) => {
evnt.preventDefault();
drawer.close();
});
});
</script>


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi
I added the script to the "Head Custom Code" in my current template.
Unfortunately, the navigation still behaves the same as before.
Kind regards Markus
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Markus

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi
Thanks for the help.
My client is satisfied with the current functionality of the mobile navigation.
I'll let you know if anything needs to be changed.
Thank you and have a nice day
Markus
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.