Turn off Smooth Scrolling or fix "bug! ;-)

Hi everyone! I am trying to “copy” this page to wordpress for a customer Drivingcenter

  • And don’t worry… It’s the same company so it’s allowed to copy :wink: -

If you look at the menu that is made up out of images (I know… I don’t like it either ;-)), you click on an image and it sends you to the target page with some offset from the top.

I have tried to reproduce that but the smooth scrolling function messes that up.
I want to use one of the image buttons (fourth one, has the id of mp4 on every page) as a target on ALL pages so I can use a global module as a menu.
Like:
http://mysite/mypage/#mp4
http://mysite/myotherpage/#mp4
http://mysite/yapage/#mp4

You can see my version here: http://fszn.passiert-notiert.de/firmenkunden/incentives/ (password:ppw)

If you click on ANY of the menu images, it just scrolls to the #mp4 and doesn’t go to the other page.

I wouldn’t mind turning off the smooth scrolling in BB entirely for this to work. Is it possible? Or do you see another way to do this?
Thank you!

Anja

Hey Anja,

Sure enough, I was able to recreate the issue on my local dev. I’ll go ahead and file a bug report so our lead dev can check. Thanks for the heads up! :slight_smile:

Ben

Hi Ben,
thanks for trying and for creating a bug report. I found a way to make it work.
It WORKS, if you add a html module and inside that add a <a name="start"> and then make it invisible with css
margin:0; padding:0; height:0; visibility:hidden;
Seems the linking works if there is a real anchor link on the target page.

Thanks, this is resolved for me but still might be worth looking into for your dev :wink:
Have a great day!
Anja

Hey Anja,

Just letting you know this has already been fixed on our end and will be available on the next maintenance patch. :slight_smile:

Ben

Hey Ben,
thanks a bunch for getting back to me about that! And thanks for fixing! Great work as always! Love the beaver and its team!
Anja

No worries at all, Anja! :slight_smile: And thanks for the kind words, we really appreciate it.

Enjoy!

Ben