WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Subpages as Secondary Menu
[resolved] Don't show dropdown (3 posts)

  1. Marco Chiesi
    Member
    Posted 1 year ago #

    Hi there,
    thank you for this plugin. I am wondering if there's a way (filter?) to prevent the dropdown menus from being shown in the subpages menu.
    I am working on a site having a 3 levels menu structure, and by default the 3rd level is shown as a dropdown submenu of the subpages menu. However the client does not want a dropdown menu in the site, so the 3rd level will be shown elsewhere (sidebar), but how can I hide the dropdown from the subnav?
    Right now I have hidden it with CSS, but I would prefer to exclude it at PHP level.
    I have seen the documentation about the filter for excluding subpages by ID, but in this case I don't think it can be a good solution (I should list all the pages that are at 3rd+ level, not very handy).
    In Genesis settings I disabled the dropdown on the secondary menu, but it doesn't make any difference (I think that option only controls wether to use pure css or superfish).
    Thank you.

    http://wordpress.org/extend/plugins/genesis-subpages-as-secondary-menu/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    Try this in your theme's functions.php file: https://gist.github.com/3920418

  3. Marco Chiesi
    Member
    Posted 1 year ago #

    Thank you Bill. Your snippet works perfectly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic