WordPress create new on site when a new page is added

Figured it out, there is no such thing as “dataslug”, changed it to “data-slug” and it worked perfectly. Really stupid mistake.

I guess most people don’t use the tag, but if anyone wants to know you could easily replace it with a and give it a ‘scrollto’ class using the scrollto jquery plugin. Just a thought.