Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to move menu under header image with Going Green Child Theme
Tagged: going green, going green pro, menu, move menu
- This topic has 12 replies, 4 voices, and was last updated 10 years, 6 months ago by
Sridhar Katakam.
-
AuthorPosts
-
July 30, 2014 at 1:36 pm #116370
kradke
MemberCan someone please give me some advice on how to move the menu underneath the header image in Going Green Pro? I will take the site off maintenance mode now. I need to move the menu and shorten the green background so it does not got across the whole width of the page, just as wide as the content area. Any help would be appreciated.
http://www.krcreativetesting.com
thank youJuly 30, 2014 at 4:06 pm #116381Marc
ParticipantOnce again to Brad Dalton - your answer is probably here -
http://wpsites.net/wordpress-tips/move-genesis-nav-menu-before-or-after-header/
August 11, 2014 at 1:06 pm #118256kradke
MemberI read the article and removed this from functions.php
//* Reposition the navigation
remove_action( 'genesis_after_header', 'genesis_do_nav' );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_subnav' );That moved the menu down below behind the content container, not below the header and above the container like I was trying to do. Should I have added a different function in it's place?
Thank You,
KatieAugust 11, 2014 at 1:18 pm #118260Genesis Developer
MemberAfter removing above the code you need to modify the CSS little bit. Then it will display at proper place.
August 11, 2014 at 1:24 pm #118264kradke
MemberModify the CSS as in margins? thanks
August 11, 2014 at 1:30 pm #118268Genesis Developer
Memberyes. margin, padding etc.
August 11, 2014 at 1:50 pm #118274kradke
MemberWould you possibly be able to look at it http://www.krcreativetesting.com
I put this style in and it didn't help.
.nav-primary {
margin-top: 63px;
}August 11, 2014 at 2:00 pm #118277Genesis Developer
MemberModify your style.css file:
Line no 1014 : replace
margin-top: 63px
tomargin-top: 5px
Line no 820: replace
padding: 40px 0 200px
topadding: 40px 0 20px;
Line no 418: replace
margin: -160px auto 0
tomargin: 30px auto 0
Now you'll get a good shape
August 11, 2014 at 2:29 pm #118279kradke
MemberThank you! That helped tremendously. I just changed one of the values a bit and got the menu where I wanted it to be positioned.
Katie
October 21, 2014 at 2:40 pm #128683kradke
MemberSo I had the menu moved where I wanted it and now it is not showing up on mobile devices. It looks great on a computer screen. Would someone mind taking a look? http://www.krcreativetesting.com
October 22, 2014 at 9:03 pm #128811Sridhar Katakam
ParticipantAdd this in child theme's style.css:
@media only screen and (max-width: 1023px) { .site-header { padding-bottom: 0; } .site-inner { margin-top: 0; } }
October 23, 2014 at 12:46 pm #128874kradke
MemberI added that in the child theme style and the menu still drops down behind when the screen in smaller than 800 some pixels wide.
October 23, 2014 at 10:46 pm #128914Sridhar Katakam
ParticipantLooks fine to me.
http://cl.ly/image/0K1u3a0i0L3m
I checked in my mobile as well.
Can you try doing a hard refresh?
Ctrl + F5 in PC
Cmd + Shift + R in Mac.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.