WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Category Posts Widget] Add CSS class dynamically (First & Last items)

[Plugin: Category Posts Widget] Add CSS class dynamically (First & Last items)

  • lord_dev
    Member

    @lord_dev

    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/

  • The topic ‘[Plugin: Category Posts Widget] Add CSS class dynamically (First & Last items)’ is closed to new replies.