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, 9 months ago by
samw.
-
AuthorPosts
-
February 9, 2013 at 4:12 pm #19292
Carolyn
MemberIs it possible to change the location of the menu in the Lifestyle them to below the header?
February 9, 2013 at 7:24 pm #19306Susan
ModeratorPer 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 #19444Carolyn
MemberThanks Susan, I searched but obviously not that well!
February 10, 2013 at 2:58 pm #19447Susan
ModeratorNo problem. 🙂
February 11, 2013 at 2:23 am #19546samw
MemberHi
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 #19580Susan
Moderator@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 #19743samw
MemberHi
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
Thanks
February 11, 2013 at 8:17 pm #19744samw
MemberFebruary 11, 2013 at 8:27 pm #19745Susan
ModeratorSam - 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 #19746tomarob
MemberCorrect 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.com
February 11, 2013 at 8:49 pm #19747Susan
ModeratorTom - you are correct - the secondary menu is below the header. 🙂
February 11, 2013 at 8:55 pm #19749Carolyn
MemberThanks Tom (and Susan)!
February 11, 2013 at 9:59 pm #19756 -
AuthorPosts
- The topic ‘Location of Menu in Lifestyle Theme’ is closed to new replies.