So, for me it only worked when I added the <li>
element. It did not work on <a>
elements for me too.
- make a
<ul>
- make some
<li>
elements inside it
- set each
<li>
with adata-menuanchor
attribute.
- make sure
data-menuanchor
attribute of your<li>
matches exactly the same with each corresponding Section’sdata-anchor
attribute.
- Check your custom code (site settings → custom code) it should have the same AnchorNames as you defined for both sections and navs in step 3 and 4.
- make sure you set an
ID
for the<ul>
and specify the same in your custom code.
something like this:
$('#fullpage').fullpage({
anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'],
navigation: true,
menu: '#myMenu'
});
I guess this should help.
here is a working thing: