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

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
[Flash Sale!] Enjoy with 25% Discount for PRO or Membership purchase. Just put Code: FLASHSALE25 during checkout!