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 2 years 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 2 years 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 2 years ago

Awesome! Works perfectly. Thank you very much 🙂

Get 60% Discount for Membership plan!

Access Life-time All-In-One Membership with 500+ Premium WordPress themes and Joomla templates just $159.60 (instead of $399) after discounted! Life-time Access, Download and Support, One-time Payment, No Renewal. Coupon code: REMOTEWORK

Join All-In-One Club with 60% OFF on today!

We’re with you! We're offering 60% Discount on all purchases due to the impact of COVID-19! Code: REMOTEWORK More Details
We’re with you! We're offering 60% Discount on all purchases due to the impact of COVID-19! Code: REMOTEWORK More Details