August 16, 2013 at 10:46 pm #56984
I 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.
Thanks for any/all guidance.http://localAugust 17, 2013 at 8:39 am #57044
You 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 #57075
Can I keep the nav bar in its original spot AND duplicate it above the footer with that? You said “change” the hook position. . .
SusannaAugust 17, 2013 at 3:54 pm #57086
That’s exactly what it does.
August 17, 2013 at 7:04 pm #57110
Brad, 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?
SusannaAugust 18, 2013 at 8:36 am #57141
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 #57150
Thanks, 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!
SusannaAugust 18, 2013 at 9:35 am #57154
Yes 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 #57394
Brad, how would I apply that 3rd menu to the bottom nav bar?August 19, 2013 at 1:57 pm #57398
You’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 #57399
So not as simple as just creating a new menu, then?August 19, 2013 at 2:59 pm #57419
No 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 #57429
Could I create an after-content widget area and put a custom menu into it?August 19, 2013 at 4:42 pm #57432
Yes and that’s probably the easiest way to do it.
You must be logged in to reply to this topic.