Forums

Class only for menu position with children (4 posts)

  1. newkind
    Member
    Posted 3 years ago #

    Hi,

    Is there any class that would describe only the

  2. position of a Pages based menu that has children ? So i could give it a star, arrow or anything like that ?
  • esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Not by default. Are you saying that you want to apply a class to the whole menu or just to the child/sub-pages menu?

  • newkind
    Member
    Posted 3 years ago #

    Only for a position in the menu that has children.

  • esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Sorry - don't have a nice easy answer for this one. The only way around it (that I can think of) is to build your own menu function that queries each page and determines whether it has children using something like get_children and applies a class before outputting the link.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags