YOOtheme Pro is here! The best WordPress and Joomla theme. Learn more

Avatar greg asked

Smooth scroll

Hi again

I use jQuery to add uk-scroll attribute to main menu item. Totop is also added to page and smooth scroll to top works as it should. But the uk-scroll attribute on main menu does not scroll.

Here is my code to add uk-scroll to my menu item:

    $('.uk-scroll > a').attr( 'uk-scroll', '' );  

I have added uk-scroll class to item from menu manager. The attribute is well added.

Any help would be appreciated

  • WordPress
  • UIkit
  • YOOtheme Pro

2 Answers

Know someone who can answer? Share a link to this question via email or twitter.