WordPress.org

Ready to get started?Download WordPress

Forums

Styling list items with CSS (7 posts)

  1. skotmb
    Member
    Posted 4 years ago #

    Can anyone PLEASE help me? I'm trying to create image rollovers for my main navigation. This includes a different image for each page using the "sliding door" method with CSS. My problem is that wp_list_pages doesn't allow me to give each item an id or class to style. There is a plugin called Classy wp_list_pages that will do this....sometimes. If anyone knows of a plugin that does the same thing please let me know.

    If there is another way to achieve this I don't know what it is and am open to any ideas.

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    Are the various default classes appended to the output elements of wp_list_pages not enough? ...

    Check the source code output from the function and you'll see the classes..

  3. skotmb
    Member
    Posted 4 years ago #

    I've tried using, for example "class="page_item page-item-53" with the CSS but it doesn't work. Is that what you're referring to?

  4. skotmb
    Member
    Posted 4 years ago #

    Has this worked for you before, t31os_? Please say "yes". If so, there is a great possibility that I just had my CSS wrong. Perhaps too many selectors involved.

  5. Mark / t31os
    Moderator
    Posted 4 years ago #

    Yeah proberly just some other definitions causing the problem...

    To avoid other defs causing a problem, or while you work them out, just append !important to the definitions..

    .example {
    color:red!important;
    font-weight:bold!important;
    }
  6. skotmb
    Member
    Posted 4 years ago #

    Learn something new everyday. Thank you SO much, t31os_. You really were a lot of help. I'll give it a try tomorrow. Again, thank you.

  7. Mark / t31os
    Moderator
    Posted 4 years ago #

    No problem.. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic