简体   繁体   English

如何在wordpress页面上显示当前菜单在侧边栏上显示父菜单和子菜单

[英]How to display current manu on wordpress page display parent and sub-menu fo on sidebar

I have a main navigation and all parents have children. 我有一个主要的导航,所有父母都有孩子。

Example: 例:
Parent Page A: 父页面A:

  • Child A1 儿童A1
    - Child A11 -儿童A11
    - Child A12 -儿童A12
    - Child A12 -儿童A12
    - Child A13 -儿童A13
  • Child A2 儿童A2
  • Child A3 儿童A3

Parent Page B: 父页面B:

  • Child B1 B1儿童
    - Child B11 -儿童B11
    - Child B12 -儿童B12
    - Child B12 -儿童B12
    - Child B13 -儿童B13
  • Child B2 B2儿童

If we are click on Child A12, sidebar should looks like: 如果单击Child A12,则侧边栏应如下所示:
Parent Page A: 父页面A:

  • Child A1 儿童A1
    - Child A11 -儿童A11
    - Child A12 -儿童A12
    - Child A12 -儿童A12
    - Child A13 -儿童A13
  • Child A2 儿童A2
  • Child A3 儿童A3

Thanks. 谢谢。

This is a simple CSS tweak! 这是一个简单的CSS调整! use firebug see the class being added to the child and sub-child menus and accordingly write the css! 使用firebug看到要添加到子菜单和子菜单的类,并相应地编写CSS!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM