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:
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.


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 ­čÖé

Xmas Sale with 50% Discount on today!

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

Join All-In-One Club and use 50% OFF xMas Coupon!


eski┼čehir escort izmit Escort bursa escort bayan ankara escort bayan van escort bayan elaz─▒─č escort bayan erzurum escort bayan
[November Released] LT Hotel Booking - Booking platform for Hotel/Resort Wordpress theme | Support Elementor & WP Hotel Booking plugins Check it out
[Merry Christmas 2019!] Get 50% OFF for PRO Licenses and Membership packages! Coupon Code: XMAS2019 How to use it?