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)
We use cookies to allow login, checkout, and analyze site traffic. By continuing to use this website, you consent to the use of cookies in accordance with our cookie policy.
OnPoint Plugins
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.
Using “Advanced Sidebar – Navigation”
You may use the Navigation block by adding this filter to the your active theme’s functions.php file.
Either option will have the same effect:
Have a great day!