WordPress.org

Ready to get started?Download WordPress

Forums

Theme stopping Page ordering form working? (2 posts)

  1. LucyRyder
    Member
    Posted 1 year ago #

    Hello, I am trying to re-order the navigational links on my website, and although i can see the pages re-order in the back-end - these changes are not publishing and showing the front end.

    I am using the Coldstone theme - could it be something to do with `the way the menu is called in the header.php?

    <div class="menu">
    			<?php $menuClass = 'nav superfish';
    			$primaryNav = '';
    			if (function_exists('wp_nav_menu')) {
    				$primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
    			};
    			if ($primaryNav == '') { ?>
    				<ul class="<?php echo $menuClass; ?>">
    					<?php if (get_option('coldstone_swap_navbar') == 'false') { ?>
    						<?php if (get_option('coldstone_home_link') == 'on') { ?>
    							<li <?php if (is_home()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php _e('Home','ColdStone') ?></a></li>
    						<?php }; ?>
    
    						<?php show_page_menu($menuClass,false,false); ?>
    					<?php } else { ?>
    						<?php show_categories_menu($menuClass,false); ?>
    					<?php } ?>
    				</ul> <!-- end ul#nav -->
    			<?php }
    			else echo($primaryNav); ?>
    
            </div>

    Any help would be massively appreciated :)

    Sorry its the first time i've pasted code into a post - hope it did it right by clickign in the code button above...? sorry if not!!!

  2. LIMEXS
    Member
    Posted 1 year ago #

    Please, use wp_page_menu

Topic Closed

This topic has been closed to new replies.

About this Topic