I’m creating a dymanicallly generated horizontal dropdown menu (based off of the son of suckerfish [http://www.htmldog.com/articles/suckerfish/dropdowns/] combined with wp_list_cats() function), and I have it completely working except that I need to add a small CSS controlled background-image to the categories that have subcategories.
All the CSS is correct, and I even know where to add the conditional statement in the template-functions-category.php file. I just don’t know how to write the conditional so that class=”daddy” is applied when a category has subcategories.
The closest thing I’ve found was made by maerk, found here and here:
My head is exploding after way to many hours of research and hacking around. I would greatlly appriciate any advice and guidance available.
Thank you for your time and assistance.
- The topic ‘Conditional for identifying parent categories’ is closed to new replies.