Add duplicate menu bar above footer?

Community Forums Forums Design Tips and Tricks Add duplicate menu bar above footer?

This topic is: resolved

This topic contains 13 replies, has 2 voices, and was last updated by  braddalton 1 year ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #56984

    FutureExpat
    Participant
    Post count: 41

    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.

    Using Genesis/Prose.

    Thanks for any/all guidance.

    http://local
    #57044

    braddalton
    Participant
    Post count: 9737

    You can change the hook position in this code if needed:
    [php]
    add_action( ‘genesis_before_footer’, ‘genesis_do_nav’ );
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #57075

    FutureExpat
    Participant
    Post count: 41

    Hi 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,
    Susanna

    #57086

    braddalton
    Participant
    Post count: 9737

    That’s exactly what it does.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #57110

    FutureExpat
    Participant
    Post count: 41

    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?

    Thanks,
    Susanna

    #57141

    braddalton
    Participant
    Post count: 9737

    Hello 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:
    [php]
    add_action( ‘genesis_after_content_sidebar_wrap’, ‘genesis_do_subnav’ );
    [/php]

    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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #57150

    FutureExpat
    Participant
    Post count: 41

    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! :-)

    Susanna

    #57154

    braddalton
    Participant
    Post count: 9737

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #57394

    FutureExpat
    Participant
    Post count: 41

    Brad, how would I apply that 3rd menu to the bottom nav bar?

    #57398

    braddalton
    Participant
    Post count: 9737

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #57399

    FutureExpat
    Participant
    Post count: 41

    So not as simple as just creating a new menu, then?

    #57419

    braddalton
    Participant
    Post count: 9737

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #57429

    FutureExpat
    Participant
    Post count: 41

    Could I create an after-content widget area and put a custom menu into it?

    #57432

    braddalton
    Participant
    Post count: 9737

    Yes and that’s probably the easiest way to do it.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.