• Resolved Zetona

    (@zetona)


    Hello all,

    as soon as a section has slides, the menu becomes dropdown and the top item is not linked anymore.
    Im trying to remove the sub items and bring the link back into the first level menu item.

    Any help is much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Julien Zerbib

    (@julien-zerbib)

    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

    Thread Starter Zetona

    (@zetona)

    Hello Julien,

    thank you very much, this works perfectly ??

    All the best
    Z*

    Plugin Author Julien Zerbib

    (@julien-zerbib)

    Hi Z* ??

    You’re welcome ??

    Best,

    Julien

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable dropdown menu’ is closed to new replies.