OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
      • Basic Version
        • Documenation
        • Usage
        • Developer Docs
      • PRO Version
        • Demo
        • Usage
        • Developer Docs
    • Go Live Update Urls
      • Basic Version
        • Documenation
        • Usage
        • Troubleshooting
      • PRO Version
        • Demo
        • Usage
        • URL History
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Show main parent category when active child

Resolved

Requested: 1 year and 7 months ago

How to show main category when user have active child page (when use, Advnced Sidebar – Navigation or Advanced Sidebar Pages):

Cat1

— Sub1

— Sub2 (active)

— Sub3

Cat2 (show)

— Sub21 (hide)

— Sub22 (hide)

— Sub23 (hide)

Cat3 (show)

Plugin: Advanced Sidebar Menu

  1. Avatar for OnPoint PluginsOnPoint Plugins

    1 year and 7 months ago

    Hi Ɓukasz,

    The “Advanced Sidebar – Pages” block is not intended to show categories so that one is probably not feasible.

    Using “Advanced Sidebar – Categories”

    You may use the Categories block by adding this filter to your active theme’s functions.php file.

    • ‘Always display child categories’ must be unchecked.

    Using “Advanced Sidebar – Navigation”

    You may use the Navigation block by adding this filter to the your active theme’s functions.php file.

    • ‘Display the current item’s section only’ must be unchecked.

    Either option will have the same effect:

    1. Only affect the menu when viewing a child or grandchild item.
    2. Only display top level items and the current item’s direct family.

    Have a great day!

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2026 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact