WordPress.org

Support

Support » How-To and Troubleshooting » In menu walker change parent class dynamically according to child tabs status

In menu walker change parent class dynamically according to child tabs status

  • Hi,

    I am reading custom menu using walker. I am displaying my child tabs status color to red, green, blue dynamically with some prefered condition. I want to change my parent class according to child status.

    how is it possible??
    example:

      <li class=”get from child status “>parent tab
      <li class=”blue”>child tab 1
      <li class=”green”>child tab 2
      <li class=”red”>child tab 3
      <li class=”blue”>child tab 4
      <li class=”red”>child tab 5
      <li class=”green”>child tab 6

    In this case priority order is red, blue, green. when we get least color that is red then parent class should be change class depending on child class.

    Please help urgent.

    Thanks,
    Ashok. M

  • The topic ‘In menu walker change parent class dynamically according to child tabs status’ is closed to new replies.
Skip to toolbar