WordPress.org

Support

Support » How-To and Troubleshooting » Add CSS Styling to a Parent List Item in a UL

Add CSS Styling to a Parent List Item in a UL

  • So I have a site that is successfully using the suckerfish CSS (along with a little crossover code for IE) dropdown navigation menu and everything works great for a 3-tier dropdown. I can add/remove/change pages and it’s all dynamic with no problems – child pages and grandchild pages display properly in the dropdowns too.

    However, I want to add a small arrow to only parent pages to let viewers know that if they put their mouse over the list item in the menu list, a dropdown will appear with the child pages. Parent pages without a child will not display an arrow because a dropdown will not appear because there are no child pages.

    Is there a way to dynamically conditionalize a parent list item with the list item being the current page? There’s a way for parent pages, child pages, or by using the current_item_class, but this all needs to be dynamic, no hard coding.

    Thanks for any help!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add CSS Styling to a Parent List Item in a UL’ is closed to new replies.
Skip to toolbar