Changing scroll offset to scroll a little higher after pressing main menu button

SupportCategory: Joomla! Template QuestionsChanging scroll offset to scroll a little higher after pressing main menu button
AvatarFlorian Winterl asked 1 year ago

Hi there,
i got a little problem with the lt_hunting template:

http://tattoo.fw-mediendesign.de
As you can see my headings get covered when i press a menu button.
Is there a way to change the value of how far the site scrolls down after pressing a menu button?
I don’t want to increase the space above the heading with margin though.

Regards
Florian

1 Answers
KelvinKelvin Staff answered 1 year ago

Do you mean it hide the title for your block?
If so, please open file ‘scroll.js’ located in folder ‘js’ of template, go to line 51, you will see code

scrollTop: $(target).offset().top – $(‘#sp-top-bar’).height()

just replace to

scrollTop: $(target).offset().top – $(‘#sp-top-bar’).height() – 100

Save and recheck.

AvatarFlorian Winterl replied 1 year ago

Awesome! Works perfectly. Thank you very much ­čÖé

Spring Sale 2019

eski┼čehir escort izmit Escort bursa escort bayan ankara escort bayan van escort bayan elaz─▒─č escort bayan erzurum escort bayan
[Big Update] All Joomla! templates are ready with Joomla! 3.9.x (latest), preparing for Joomla! 4 Learn More!
[Happy Spring Sale!] Get 25% Discount for Your order! Limited Time => Get Coupon Code!