• Resolved 50slespaul

    (@50slespaul)


    Great plugin!

    Just wondering, with the “Pages to Exclude, Comma Separated:” How do you determine the page? I tried using the page name etc… or does it have to be the page id? can you exclude a whole section of child pages? meaning in this example I have:

    Home
    About Us
    – Staff
    – Mission Statement
    Our Services
    – Repair
    – Refurbishing

    “Home”, “About Us” & “Our Services” are parent menu items… if I want to “exclude” the children of “Our Services” ( Repair & Refurbishing ) but have the children of “About Us” display as normal, this possible?

    thx

    https://www.ads-software.com/extend/plugins/advanced-sidebar-menu/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hello 50slespaul,

    To exclude pages you must use the ids, (I probably should have that described better).

    You can exclude a section of pages, if you add the id of the parent page to be excluded. For instance, in your example, if you exclude “Our Services” the child pages of “Our Services” will also be excluded. Otherwise you will have to exclude the child pages individually.

    Thread Starter 50slespaul

    (@50slespaul)

    ah ok… one thing that would easily make it possible is, I noticed child pages are contained in a ul class “grandchild-sidebar-menu” but is outside the parent li… if it was inside the parent li as it should you could add a simple css style like

    .child-sidebar-menu li.page-item-37 ul.grandchild-sidebar-menu {display:none;}

    li.page-item-37 being the parent li id… but the child ul would have to be inside of the parent li

    Ex:

    <li class=”page-item-37″>my parent li
    <ul class=”grandchild-sidebar-menu”>

    • my page child
    • but the ul.grandchild-sidebar-menu is outside it’s parent li so can’t hook it…

    Thread Starter 50slespaul

    (@50slespaul)

    This page is messed up! half my reply is gone!

    Plugin Author Mat Lipe

    (@mat-lipe)

    Hello,
    One way to target the desired grandchild-sidebar-menu is with jQuery which will add the css for you.

    Here is the jQuery which will add the display:none to the grandchild-sidebar-menu after the li.page-item-37

    jQuery(document).ready( function($) {
            $('.child-sidebar-menu li.page-item-37').next('.grandchild-sidebar-menu').remove();
    });

    Hope this helps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Advanced Sidebar Menu] how to remove some child pages’ is closed to new replies.