i am using your nice theme for a one page laoyut.
i tried to link the menu items to an section of the one page. actually the links work (e.g. https://www.fraublumenschoen.de/#kontakt) - but the menu does not disappear after clicking at the links.
how can i change this?
Unfortunately the menu was not designed for a "scroll-to" functionality. Every time you click on a menu link, you are supposed to visit a different page, and menu will be return to the initial state, i.e. "closed". In your case, you want to close the menu when a menu link is clicked, so you'd need to add some extra JS that closes the menu on click.
well i found the much easier way was to tweak line 122 of the /hemma/js/main.js which is responsible to leave the menu whenever you click anywhere but the side menu - i simply turned this behaviour around by deleting the "!" in the line of code.maybe you could be so kind of letting me know how to overwrite this file with the child theme.i put it to /hemma-child/js/main.js but it would not get read.
all my bestthomas
Sure it works, but keep in mind that you will lose any changes to the main theme in case you will need to update it.
thats exactly the reason why i was asking you to instruct me a way to put it in the child theme.it seems a bit you avoiding work today - maybe it's snowing at your place too ;-)bestthomas
Hello again Thomas,
I see your point but, as I previously wrote I am unable to provide full support on theme customisations. It's not a matter of avoiding work, but while editing the parent file requires a minimal change, creating a child theme requires much more work.
Then you are supposed to add some JS in that file that triggers the menu closing when clicking on a menu link. Hope that makes sense
thanks and please mark as solved.