![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
-
AuthorPosts
-
April 19, 2023 at 5:08 pm #1404964
Hi i’m having an issue with the anchor links on this page:
Please see screenshot: https://www.loom.com/i/d9083acde2ed4c47b8936dc9e015fb06
If you click on the milestone heading (for example: WET PIPE), it should open the accordion(Wet Pipe Fire Sprinkler Systems) below and scroll to that section. The only problem is that, the sticky header is covering the start of the accordion tab. Can you please help me fix it so that the header will not cover the accordion tab.
Thanks
April 22, 2023 at 7:12 pm #1405243Hey buzbuzzer,
Thank you for your patience, I tested in Windows in Chrome, Firefox, & Edge and only Firefox had the offset wrong, is this where you see it also?
I see that you added this script:(function($) { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 100 //offsets for fixed header }, 1000); return false; } } }); }(jQuery));
But you are getting a jQuery is not defined do you have the option Enfold Theme Options ▸ Performance ▸ Load jQuery in your footer enabled? Try disabling it
Best regards,
MikeApril 24, 2023 at 5:09 pm #1405398Hello Mike,
Thanks for helping, I already disabled the Load Jquery in footer option but its still not working. Here’s a loom video:
https://www.loom.com/share/2894f0f7dbe64e60b569620cc61de2f3
Regards
Christian-
This reply was modified 1 year, 4 months ago by
buzbuzzer.
April 25, 2023 at 1:12 am #1405458April 26, 2023 at 7:02 pm #1405734Hello Mike,
Sure here’s the login
April 27, 2023 at 1:24 am #1405755Hi,
Thanks for the login, I found that you had Enfold Theme Options ▸ Performance ▸ Disable jQuery Migrate enabled, I disabled it for you now you don’t have the jQuery error. I also made some minor adjustments to the script, please clear your browser cache and check.Best regards,
Mike -
This reply was modified 1 year, 4 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.