Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add duplicate menu bar above footer?
- This topic has 13 replies, 2 voices, and was last updated 12 years, 5 months ago by
Brad Dalton.
-
AuthorPosts
-
August 16, 2013 at 10:46 pm #56984
FutureExpat
ParticipantI have a client who'd like to have a duplicate of the primary nav bar at the bottom of the page, above the footer. Haven't seen anything about that here.
Using Genesis/Prose.
Thanks for any/all guidance.
http://localAugust 17, 2013 at 8:39 am #57044Brad Dalton
ParticipantYou can change the hook position in this code if needed:
add_action( 'genesis_before_footer', 'genesis_do_nav' );
August 17, 2013 at 3:11 pm #57075FutureExpat
ParticipantHi Brad,
Can I keep the nav bar in its original spot AND duplicate it above the footer with that? You said "change" the hook position. . .
Thanks,
SusannaAugust 17, 2013 at 3:54 pm #57086Brad Dalton
ParticipantAugust 17, 2013 at 7:04 pm #57110FutureExpat
ParticipantBrad, it worked like a charm except it added the nav bar underneath the footer widget area. I changed it to after_content, and it showed up above the widgetized area but narrower for some reason. Any thoughts?
Also, on the upper nav bar we've included the date, but we don't want it on the lower one. Is there a way to modify what shows up in each?
Thanks,
SusannaAugust 18, 2013 at 8:36 am #57141Brad Dalton
ParticipantHello Susanna
Can you please link to your site.
The code ads the nav bar before the footer as requested.
If you want to add it before the footer widgets, you will need to change the hook position:
add_action( 'genesis_after_content_sidebar_wrap', 'genesis_do_subnav' );
I tested this locally and it works.
The footer widgets and the footer are 2 different sections.
Please start another post for your second question. Thanks
August 18, 2013 at 9:28 am #57150FutureExpat
ParticipantThanks, Brad. The after content sidebar wrap hook works, but also displays the menu bar narrower than the footer widgets just below it (and narrower than the menu in the header as well).
It's on a temp. site at http://bjmann.shewblogs.com/
At least I'm getting to see what different hooks do! 🙂
Susanna
August 18, 2013 at 9:35 am #57154Brad Dalton
ParticipantYes i see that. You would need to use CSS to fix that problem or try another hook.
Another way would be to create a third menu.
August 19, 2013 at 1:31 pm #57394FutureExpat
ParticipantBrad, how would I apply that 3rd menu to the bottom nav bar?
August 19, 2013 at 1:57 pm #57398Brad Dalton
ParticipantYou'd need to custom code it first and then hook it in to position. I don't have the code for that at the moment.
August 19, 2013 at 2:02 pm #57399FutureExpat
ParticipantSo not as simple as just creating a new menu, then?
August 19, 2013 at 2:59 pm #57419Brad Dalton
ParticipantNo because you need to assign it to a menu position of which there are only 2 by default with your theme so you need to register a new menu using PHP code. Haven't done that before using Genesis.
August 19, 2013 at 4:05 pm #57429FutureExpat
ParticipantCould I create an after-content widget area and put a custom menu into it?
August 19, 2013 at 4:42 pm #57432Brad Dalton
Participant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.