WordPress.org

Ready to get started?Download WordPress

Forums

Category Posts Widget
Add CSS class dynamically (First & Last items) (1 post)

  1. lord_dev
    Member
    Posted 2 years ago #

    Hey,

    I need to know how to to add CSS classes dynamically to the final list in cat-posts.php.

    E.g.

    <li class="cat-post-item first">
    <li class="cat-post-item">
    <li class="cat-post-item">
    <li class="cat-post-item">
    <li class="cat-post-item">
    <li class="cat-post-item">
    <li class="cat-post-item last">

    At the moment it only has <li class="cat-post-item"> but I need the first and last so that I can make the CSS look prettier.

    Thanks in advance

    http://wordpress.org/extend/plugins/category-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic