Support » Themes and Templates » poblem with unregistering navigation.

  • Hi,
    I m creating a theme for a client and I m stuck at a point. (I’ve started from a blank theme). I registered for two navigation one for the header and the other for the footer but now I want to remove the footer navigation because I want to add some other navigation.
    I unregsitered the footer navigation

    function remove_nav(){
    	add_action('after_setup_theme', 'remove_nav');

    and also deleted the menu from admin panel however the navigation doesn’t go away. I want to register a new navigation after removing this one. but this existing footer navigation doesn’t go away and its showing the same menu as the first one.I have done it several times before with other themes but it never happened to me before. is that some error?

    //For registring navigation
    	if (function_exists('register_sidebar')) {
    				'main_nav'=> 'Main Navigation Menu',
                                    'footer_nav'=> 'Footer Navigation Menu'
            //for calling the function
             	<?php wp_nav_menu( array('footer_nav' => 'Footer Navigation Menu')); ?>

  • The topic ‘poblem with unregistering navigation.’ is closed to new replies.