Community Forums › Forums › Archived Forums › Design Tips and Tricks › Location of Menu in Lifestyle Theme
- This topic has 12 replies, 4 voices, and was last updated 10 years, 3 months ago by samw.
February 9, 2013 at 4:12 pm #19292
Is it possible to change the location of the menu in the Lifestyle them to below the header?February 9, 2013 at 7:24 pm #19306
Per the snippet here:http://my.studiopress.com/snippets/navigation-menus/add this to your functions.php
/** Reposition the primary navigation menu */ remove_action( 'genesis_before_header', 'genesis_do_nav' ); add_action( 'genesis_after_header', 'genesis_do_nav' );February 10, 2013 at 2:51 pm #19444
Thanks Susan, I searched but obviously not that well!February 10, 2013 at 2:58 pm #19447
No problem. 🙂February 11, 2013 at 2:23 am #19546
Great post..I have a similar issue. Using a custom header image my menu is now in the wrong place. I put the code into the functions file for the theme, but now I see it outputs the text for the code! I am new to this. Where exactly does the code snippet need to inserted in the functions.php file. I guess I am missing something here - Thanks in Advance
This is the extract from my php with the code
/** Add support for custom header */
add_theme_support( 'genesis-custom-header', array( 'width' => 920, 'height' => 150 ) );
/** Reposition the primary navigation menu */
remove_action( 'genesis_before_header', 'genesis_do_nav' );
add_action( 'genesis_after_header', 'genesis_do_nav' );
February 11, 2013 at 6:29 am #19580
@samw - the php code can go anywhere in your functions.php file after the opening statement, but I usually add new snippets to the bottom of my php file for ease of updating.
Can you please post a link to your site.February 11, 2013 at 8:12 pm #19743
Thanks for replying. Im building it as dev using Desktop Server. I wonder if somehow its not reloading the code. I have changed the code position and no difference. Still have menu at top right of page. Its in the theme, functions.php file and im editing with notepad ++. Desktop Server is pretty good, Im open to suggestions
February 11, 2013 at 8:17 pm #19744February 11, 2013 at 8:27 pm #19745
Sam - can you please provide a link to your site?
The code snippet you've used to add a custom header is correct; and the snippet for moving the header is correct, so I don't see why there should be conflict.February 11, 2013 at 8:38 pm #19746tomarobMember
Correct me if I'm wrong, - - but isn't lifestyle's 'secondary' menu automatically below the header??
If I'm right (and I believe I am), - - you would go to dashboard/genesis/theme settings/navigation settings/include secondary menu?
Then, - - go to menus and set up a secondary menu only (and not a primary)
On this site I did just recently, the top menu is my primary, the one under the header is my secondary.
No coding involved, - - all done from the dashboard . . . http://www.chesterfieldremodeler.comFebruary 11, 2013 at 8:49 pm #19747
Tom - you are correct - the secondary menu is below the header. 🙂February 11, 2013 at 8:55 pm #19749
Thanks Tom (and Susan)!February 11, 2013 at 9:59 pm #19756
- The topic ‘Location of Menu in Lifestyle Theme’ is closed to new replies.