Hello,
I used this code on another page to always get to the right place with an accordion:
jQuery (document) .ready (function ($) {
$ (’. x-accordion-toggle’). unbind (). on (‘click’, function () {
var $ this = $ (this);
setTimeout (function () {
$ (‘html, body’). animate ({
scrollTop: $ this.offset (). top -180
}, 300);
}, 500);
});
});
Classic accordion is set up on this side.
This code does not work on another website. Here I am using accordion.
How do I manage that the accordion always goes to the right place (header).
thank you for your help
Thomas