Hi,
First, you’ll have to follow these steps to override the WP FullPage templates. Be careful, if you do not have a child theme, you should create one first.
Then paste this code into YOURTHEME/wp-fullpage/layout/sidebar-menu.php
:
<?php
/**
* The Sidebar containing the complete menu
*
* @package WP_Fullpage\Templates\Layout
*/
?>
<?php
$orientation = WPFP_Query()->fullpage->fullpage_options['fullNavigationOrientation'];
WPFP_Helpers()->ob_start();
?>
<?php
foreach( WPFP_Query()->sections as $key1 => $section ) :
?>
<li>
<a data-activates="navigation-<?php print $section->post_name ?>" class="dropdown-button" href="#<?php print $section->post_name ?>">
<?php print WPFP_Query()->get_section_nav_title( $key1 ); ?>
</a>
</li>
<?php
endforeach;
?>
<?php
$nav = WPFP_Helpers()->ob_get_clean();
?>
<nav id="wpfp-navmenu">
<div class="nav-wrapper">
<a href="#" data-activates="wpfp-sidemenu" class="button-collapse dashicons dashicons-menu"></a>
<ul id="wpfp-menu" class="<?php print $orientation; ?> wpfp-menu hide-on-med-and-down">
<?php print $nav; ?>
</ul>
<ul id="wpfp-sidemenu" class="side-nav wpfp-menu">
<?php print str_replace( 'navigation-', 'sidenavigation-', $nav ); ?>
</ul>
</div>
</nav>
Let me know if you need something else.
Cheers,
Julien