Support » Themes and Templates » genesis menus array

  • Resolved lee718

    (@lee718)


    I am using genesis framework and want to have an array of menus after content, pulling them in from one php file, “social_media.php”.

    I have removed genesis menus and added theme support like this:

    remove_theme_support ( 'genesis-menus' );
    
        add_theme_support ( 'genesis-menus' , array ( 'primary' => 'Primary Navigation Menu' ,    'social_media' => 'Secondary Navigation Menu' ,'social_media_2' => 'Third Navigation Menu' ) );
    
      add_action('genesis_after_content', array('social_media', 'social_media_2'));
             function social_media() {
             require_once('social_media.php');
          }

    What I need to know is can I then call an array like this last part?

    Thanks for your help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘genesis menus array’ is closed to new replies.