- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Okay. Here’s what I’m trying to do. this is a wordpress question
I have a navigation that is being dynamically generated by word press function list_pages & list_categories. Becuase of this I can assign a styling to the UL or LI that gets dynamically generated. HOWEVER, I’m trying to create indivual rollover graphics for each List item created. How do I assign classes to specific dynamically generated (li) items?
Look at how I created the navigation located on the top. They are hardcoded in the sidebar.php page. I want a similar effect happening to the lower navigation on the page that is being dynamically generated. thanks!
uhhhhggg,
I think I just figured it out. Thanks to firebug I was able to see that a class gets created for each list_pages and List_cat
ie: class=" cat-item cat-item-5"
I’ll just style those generated classes.
Indeed…and just so you know, there is a plugin that will append ‘first’ and ‘last’ class to the respective LI’s.
http://wordpress.org/extend/plugins/cla … ist-pages/
There is also a way to generate "even" and "odd" when it comes to posts.
Btw, if you fixed the problem, edit your topic to say [SOLVED] so other users know. :mrgreen:
word. thanks for the plugin link!!