In menu walker change parent class dynamically according to child tabs status (1 post)

  1. muthe_ashok
    Posted 1 year ago #


    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??

      <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.

    Ashok. M

Topic Closed

This topic has been closed to new replies.

About this Topic