I need change de native behavior of the menu. Instead menu point to URL page (www.domain.com/page-name), i need point to a anchor (#page-slug, for example). Using Menus -> Custom Links i get it, but i need do that using just code.
Besides pointing to an anchor, I need it to be the slug-page.
I need this to create a one-page-scroll-theme. Using this logic, my client would only need to create the pages and choose the order, without touching the Menu panel.
Someone can help me?