Move SubNav to Sidebar

Community Forums Forums Design Tips and Tricks Move SubNav to Sidebar

This topic is: resolved

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  picturesque 1 year, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38786

    picturesque
    Participant
    Post count: 7

    I’m trying to move the subnav to the sidebar area using

    `/** Reposition the secondary navigation menu */
    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
    add_action( ‘sidebar’, ‘genesis_do_subnav’ );`

    I’m trying have just a menu showing the sub pages for the category the person is in in the sidebar. I can’t use a widget for this as it needs to change the menu based on where they are in the site. Any ideas?


    http://dev2.realpsychology.com/
    #38789

    braddalton
    Participant
    Post count: 10562

    Try this:

    And you can easily add conditional tags to this code:

    Code not displaying? Grab it on Github.


    #38866

    picturesque
    Participant
    Post count: 7

    Excellent! Thank you.


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

The topic ‘Move SubNav to Sidebar’ is closed to new replies.