Because in the menu its not added the data-attrubutes (data-url=”true” data-easing=”easeInOutQuad” data-speed=”2000″ data-scroll=””)
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
ok
i make test page on my site
http://xpeno.com/ab/?page_id=10
if i click on menu “top” dont go top page like i click on link down page “top”
how can add (data-url=”true” data-easing=”easeInOutQuad” data-speed=”2000″ data-scroll=””) to menu?
thanks
ok
i make test page on my site
http://xpeno.com/ab/?page_id=10
if i click on menu “top” dont go top page like i click on link down page “top”
how can add (data-url=”true” data-easing=”easeInOutQuad” data-speed=”2000″ data-scroll=””) to menu?
thanks
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you use jQuery to add the data attributes to that menu item?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
E.g:
var scrollAttrs;
scrollAttrs = {
'data-url': false,
'data-easing': 'easeInOutQuad',
'data-speed': 2000,
'data-scroll': ''
};
jQuery('#menu-item-53 > a').attr(scrollAttrs);
You’ll have to run that jQuery BEFORE the Smooth Scroll JavaScript is ran
wow is work
it is work
but i need work with all item menu
thank you
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
So when you press the navigation links: “SAMPLE PAGE”, “ABOUT”, “TEST”, “TOP” and “TOP2”, you want them to return to the top of the page?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Then replace this:
jQuery('#menu-item-53 > a').attr(scrollAttrs);
With this:
jQuery('#menu-menu-xpeno a').attr(scrollAttrs);
thank you
all thing work raight
Hello
i have new problem site dont work at chrom
if go down cant go up
thanks