I have two buttons: #btn1 and #btn2; and I want them to go back and forth when clicked. So #btn1 must go to previous slide and when I clic
Just add this:
$('#button1Id').click(function(){
$.fn.fullpage.moveSectionDown();
});
$('#button2Id').click(function(){
$.fn.fullpage.moveSectionUp();
});
And better also to use the option fixedElements in case.
$.fn.fullpage({
fixedElements: '#button1Id, #button2Id'
});
UPDATE
fixedElements. Just using a wrapper for the plugin and placing the fixed elements outside the wrapper will work fine if you add the fixed positioned styling in your CSS.
Example online