embikrt
Forum Replies Created
-
Forum: Plugins
In reply to: [Page scroll to id] Works fine on desktop but wrong targeting on mobileHe thx for answer. I found a solution. Needed to add JS to template java script file responsible for scrolling. Now everything is working on every mobile webbrowser.
maybe someone gonna need it 😉 >>>>
jQuery(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
}, 1000);
return false;
}
}
});
});- This reply was modified 7 years, 4 months ago by embikrt.
Forum: Plugins
In reply to: [Page scroll to id] Works fine on desktop but wrong targeting on mobileI also see that when I’m not on homepage ( for example affinance.pl/kredyt-hipoteczny ) and i use a mobile menu to jump to # – it’s working correctly hmm
Forum: Plugins
In reply to: [Page scroll to id] Works fine on desktop but wrong targeting on mobilelooks like it works on mobile but on safari. Not works correctly on chrome for example … damn. You know about that and it’s an issue with this plugin or my webpage?