Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • functions.php
    You should check the code number 1 in file ‘functions.php’ for your theme.
    Add the code number 2 in the same file just below.

    header.php
    Next, place the code number 3 in the ‘header.php’ anywhere you want.
    If the ID ‘top_navi’ already exists change the word ‘top’ in another.

    Proofread carefully to the procedure above.

    Hello Sajidrulez,

    There is no need for plugin.

    You need just edit the file functions.php in zeecorporate.
    We need to find the lines below:

    [please mark any code following the forum guidelines]

    // Register Menus
    register_nav_menu( 'main_navi', 'Main Navigation' );

    And add the line:

    register_nav_menu( 'top_navi', 'Top Navigation' );

    Then it remains to place the following code in the header.php file to the desired location.

    <!-- topnavi START -->
    <div id="topnavi">
    	<?php
    	// Get Top Navigation out of Theme Options
    	wp_nav_menu(array('theme_location' => 'top_navi', 'container' => false, 'echo' => true, 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0));
    	?>
    </div>
    <!-- topnavi END -->

    Attention to the theme updates that can remove the added code.

    Thierry,
    From French, sorry for my english language.

Viewing 2 replies - 1 through 2 (of 2 total)