restricting menu to specific page(s)

Forums Forums Menus restricting menu to specific page(s)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1537
    Anonymous
    Member

    Hey,

    I tried a search of the forums and didnt see this issue. If its already been addressed a link to the relevant topic would be great.

    I’m wondering if its possible to have the Menu Plugin only be active on a specific page (and its child pages). I’m working on a site that already has a menu system integrated into it and which the people working above me dont want messed with. This particular menu was made (along with the theme) using some drag-and-drop style theme creation software [sigh].

    However, I’m creating a sub-site of sorts that will contain information related to an upcoming event.
    I’d like to keep the main site menu intact in header.php and have a Menu Plugin menu working in the custom php for a specific set of pages.

    If this is possible, some steps to achieving this would be *greatly* appreciated

    Thanks

    #8873

    You can use the is_page() function to detect if you are on a particular page …. http://codex.wordpress.org/Function_Reference/is_page

    And here is a function which allows you to check if a page is a child of another page … http://www.mattvarone.com/wordpress/wor … ge-parent/

    You can utilize those in conjunction with the pixopoint_menu() function to only load for whatever pages you set it up for.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.