WordPress.org

Forums

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

  1. muthe_ashok
    Member
    Posted 11 months ago #

    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

Reply

You must log in to post.

About this Topic