• I have the theme ‘thrive nouveau’
    Currently there’s no support for the theme.

    I’m having an issue with the parent links on navigation not working. They are ‘#’

    The menu is set to pages. Even when I set to open in new tab, the problem is still there. It won’t let me click the page links.

    There’s two codes.
    header-navigation-2.php

    	      		</a>
    	      	</div>
    
    	      	<?php
    				$primary_nav_args = array(
    	                'menu'              => 'primary',
    	                'theme_location'    => 'primary',
    	                'container'         => 'ul',
    	                'container_class'   => 'collapse navbar-collapse',
    	                'container_id'      => 'thrive-main-menu',
    	                'menu_class'        => 'nav navbar-nav',
    	                'fallback_cb'		=> false,
    	                'echo'				=> false,
    	                'walker'			=> new WP_Bootstrap_Navwalker()
    	            );
    	            $primary_menu = wp_nav_menu( $primary_nav_args );
                ?>
              	
                <?php if ( ! empty ( $primary_menu ) ) { ?>	
                	
                	<div id="site-main-menu" class="hidden-xs hidden-sm">
                		<?php echo thrive_sanity_check( $primary_menu ); ?>
                	</div>
    
                	<!-- Mobile Menu Toggle -->
                	<div class="main-menu-mobile-wrap-toggle-wrap visible-sm">
                		<a href="#">
    		            	<?php esc_html_e('Site Menu', 'thrive-nouveau'); ?>
    		            	<i class="material-icons">add</i>
    		            </a>
                	</div>
                	<!-- Mobile Menu Toggle End. -->
    
                <?php } else { ?>
                	<ul class="dropdown-menu thrive-navbar-main-menu">
                		<li>
                			<a>" title="<?php esc_attr_e('Add Primary Menu', 'thrive-nouveau'); ?>">
                				<i class="material-icons" style="font-size: 18px;">add</i>
                				<?php esc_html_e('Add Primary Menu', 'thrive-nouveau'); ?>
                			</a>
                		</li>
                	</ul>
                <?php } ?> 
    
    	      	<ul id="user-navigation-actions" class="nav navbar-nav navbar-right">
    	     	 	
          			<li class="hs2-search-icon">
          				<a href="#">
          					<i class="material-icons">search</i> 
          				</a>
          				<div id="hs-2-form-section">
          					 <form action="<?php echo esc_url( home_url( '/' ) ); ?>" id="navbar-search" 
          				 		class="navbar-form navbar-left" method="GET">
    				        	<div class="form-group">
    				          		<input name="s" autocomplete="off" type="search" class="form-control" placeholder="<?php esc_html_e('Search posts, groups, members, and etc', 'thrive-nouveau'); ?>" id="s">
    				        	</div>
    		        		</form>
    		      		</div>
          			</li>
    
          			<li class="mobile-menu visible-xs">
    	     	 		<!-- Mobile Menu Toggle -->
    	            		<a href="#">
    			            	<?php esc_html_e('Site Menu', 'thrive-nouveau'); ?>
    			            	<i class="material-icons">add</i>
    			            </a>
    	            	<!-- Mobile Menu Toggle End. -->
    	     	 	</li>
    	      			
          			<!--WooCommerce-->
    
    ----------------------------------------------------
    
    header-navigation-1.php
    
    -----------------------
    <nav class="navbar navbar-default navbar-fixed-top header-navigation-1" id="thrive-bar">
    
    	<div class="container-fluid">
    	    <!-- Brand and toggle get grouped for better mobile display -->
    	    <div id="site-navbar-header" class="navbar-header">
    	      	<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#thrive-main-navigation" aria-expanded="false">
    	        <span class="sr-only">
    	        	<?php esc_html_e('Toggle navigation', 'thrive-nouveau'); ?>
    	        </span>
    	        <span class="icon-bar"></span>
    	        <span class="icon-bar"></span>
    	        <span class="icon-bar"></span>
    	      </button>
    
    	      <a>">
          		<?php $logo_fallback = get_template_directory_uri() . '/logo.svg'; ?>
    			<?php $logo_url = get_theme_mod( 'thrive_logo', esc_url( $logo_fallback ) ); ?>
    			<img width="120px" />" 
    			alt="<?php bloginfo( 'title' ); ?>" />
    	      </a>
    	      
    	      	<a href="#">
    	      		<i class="material-icons">perm_identity</i>
    	      	</a>
    
    	    </div>
    
    		<?php do_action('thrive_hs1_before_main_navigation'); ?>
    
    	    <!-- Collect the nav links, forms, and other content for toggling -->
    	    <div class="collapse navbar-collapse" id="thrive-main-navigation">
    	      	
    	      	<div id="sidebar-menu-toggle" class="navbar-left navbar-nav hidden-xs">
    
    	      		<a href="#">
    	      			<i class="material-icons">menu</i>
    	      		</a>
    
    	      	</div>
    
    	      	<form action="<?php echo esc_url( home_url( '/' ) ); ?>" id="navbar-search" class="navbar-form navbar-left " method="GET">
Viewing 2 replies - 1 through 2 (of 2 total)
  • Perhaps there is a script that is getting an error.
    The call to wp_nav_menu is incorrect, to start with. Themes should not ever use the 'menu' parameter.

    Thread Starter lelegaia

    (@lelegaia)

    Sorry for late replay. I tried the themes on two different sites. One without plugins and there’s still the same issue with the parent links.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Navigation not working for parent links’ is closed to new replies.