• Hi,

    I’ve been on a WP Config marathon so I apologise if I’m missing the obvious.

    Right, I’ve configured a Primary Menu. In the menu I have a Parent Cat with Childs.

    I’m losing the Primary in the Categories view.

    Here’s a page with the primary menu.

    https://www.pixelpractice.co.uk/client/RC/

    When I go to a category, the menu is not displayed.

    https://www.pixelpractice.co.uk/client/RC/category/practice-groups/family-children/

    <?php $menuClass = 'nav';
    			$menuID = 'top-menu';
    			$primaryNav = '';
    			if (function_exists('wp_nav_menu')) {
    				$primaryNav = wp_nav_menu( array( 'theme_location' => 'Primary', 'container' => '', 'fallback_cb' => 'Primary', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) );
    			};
    			if ($primaryNav == '') { ?>
    				<ul id="<?php echo esc_attr($menuID); ?>" class="<?php echo esc_attr($menuClass); ?>">
    					<?php if (get_option('chameleon_home_link') == 'on') { ?>
    						<li <?php if (is_home()) echo('class="current_page_item"') ?>><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e('Home','Chameleon') ?></a></li>
    					<?php }; ?>
    
    					<?php show_page_menu($menuClass,false,false); ?>
    					<?php show_categories_menu($menuClass,false); ?>
    				</ul> <!-- end ul#nav -->
    			<?php }
    			else echo($primaryNav); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter LeBear

    (@lebearuk)

    I’d like to use the menu configured out of the elegant theme settings across all pages.

Viewing 1 replies (of 1 total)
  • The topic ‘Use Primary Menu in Category’ is closed to new replies.