• Hi,
    On this forum and the Artisteer forum there are several posts related to issues regarding a secondary menu in Artisteer 3. I resolved my problems (not showing at all or just showing the primary menu) as follow:

    Important files:

    functions.php
    navigation.php
    header.php

    STEP 1
    Define in the functions.php (about line 55 underneath the primary menu):

    function register_custom_menu() {
    register_nav_menu('custom_menu', __('Custom Menu'));
    }

    STEP 2
    Change on 2 spots in the navigation.php (library) in the theme_get_menu function (probably around line 14 and 20 or so)
    Custom Menu to: custom_menu

    STEP 3
    Copy/paste the code for your primary menu to the spot you want your secondary menu to appear and change primary-menu to custom_menu. See below. And make style changes as desired.

    <? php
        		echo theme_get_menu(array(
        				'source' => theme_get_option('theme_menu_source'),
        				'depth' => theme_get_option('theme_menu_depth'),
        				'menu' => 'custom_menu',
        				'class' => 'art-hmenu'
        			)
        		);
        	?>

    And you are Done!

    http://wordpress.org/extend/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter GibMo

    (@gibmo)

    additition to STEP 1. Please add 1 line. So the complete code should be:

    add_action( 'init', 'register_custom_menu' );
    
    function register_custom_menu() {
    register_nav_menu('custom_menu', __('Custom Menu'));
    }

    I have tried this about 5 times and all i get is an error in the header and page wont load. I wanted to impliment a second menu that is in german, only on certain pages. I created a new header etc etc new menu and this has never worked. i have to keep uploading the original nav.php and functions.php every time i use this method.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Polylang] Secondary menu using Artisteer 3’ is closed to new replies.