WordPress.org

Ready to get started?Download WordPress

Forums

Add CSS Styling to a Parent List Item in a UL (2 posts)

  1. ensignkid
    Member
    Posted 5 years ago #

    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!

  2. ensignkid
    Member
    Posted 5 years ago #

    Anyone? Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic