Community Forums › Forums › Archived Forums › General Discussion › Please help with navigation hook
Tagged: genesis
- This topic has 5 replies, 3 voices, and was last updated 11 years, 8 months ago by
DannyM.
-
AuthorPosts
-
June 11, 2013 at 9:14 am #45257
DannyM
MemberHi all!
Im am trying to move the main navigation on http://www.halohairandbeautybristol.co.uk to sit just above the footer widgets as it is now but the background image of the nav to be full width (same as the footer widgets background image) Could you please take a look as i am unable to see what is wrong, the code seems to place the hook before the closing div so it is ''trapped'' within the element. I have tried useing firebug and have tried many before and after hooks without success.
The Theme is Fabric.
Thank you for any help
Warm Wishes
Danny
June 11, 2013 at 11:52 am #45315AnitaC
KeymasterIt's wrapped inside the #Inner. You need to put it in its own DIV and wrapper. You can probably see how it's done in the Footer-Widget area.
Need help with customization or troubleshooting? Reach out to me.
June 12, 2013 at 12:59 am #45402DannyM
MemberHi Anitac,
Thanks for that, Yes it's trapped in the #inner and I don't know why, the hook I added to the functions.php i
<code>/** Reposition the primary navigation */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_after_content_sidebar_wrap', 'genesis_do_nav' );</code>In firebug, when I manually copy it and paste it to after the #inner (<!-- end #inner -->) line it works how it should.
Can anyone point me to an article explaining what I need to do please? I thought placing the action "genesis_after_content_sidebar_wrap" would place it after the #inner rather than inside it, I cant find an article on studiopress explaining it, I've look through the hook references and tried all different hooks with no joy, and emailed studiopress support and was told to ask in the forums.
anitac - is my hook correct but I need to create a div and wrap in the css, if so can you offer any pointers?
Any help/pointers really appreciated
Thank you
Danny
June 12, 2013 at 2:02 am #45404vividvilla
MemberHi Danny,I hope this will be helpful
http://www.carriedils.com/move-header-footer-genesis/948/
http://www.carriedils.com/customize-genesis-move-header/
i dont know whether this exactly solves your problem but can certainly help you.
Vivek R – @vividvilla
Genesis Child Theme Designer and Blogger at WPStuffs.
For affordable Genesis Child Theme design and Customization Contact me hereJune 12, 2013 at 6:21 am #45420DannyM
MemberHi Vivek,
Thanks I've had a read through those articles and they seem to be along similar lines so a good reference for future.
They do relate to what I am trying to achieve although in this case the main wrap is already full width so everything is inside it.
I really dont understand, the action that I placed in the funtions.php is saying "put the nav after the content_sidebar_wrap - yet it places it inside it, why?
Can anyone from studiopress take a quick look please?
thanks
danny
June 13, 2013 at 7:49 am #45653DannyM
MemberI am still very Much struggling with this if anyone can help?
Warm Wishes
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.