Hello everybody,
I need some clues about a weird behaviour in Bootstrap5, at least it’s weird to me but maybe the weird side of the problem is me… Anyway:
I’m developing, or trying to, a tiny website with a landing page and some separate sections. I’ve build the landing page via php: it works. I’ve also added in the navbar links to anchors inside the landing page via php; it works. I noticed that, while browsing the page with a small screen the menu covers the upper part of the landing page - which is expected behaviour - and I’m trying to make it disappear at the click of a link: it works adding data-bs-toggle="collapse" data-bs-target=".navbar-collapse.show
as suggested here.
But!
Now links to internal anchors do not work any longer: I click on any of them and the landing page doesn’t scroll down.
ps
I also tried various suggestions from other places that forum doesn’t let me link here as I’m a newcomer… but to no avail.
Any suggestions?
Thanks in advance for your kind attention