• When you reach last-item in the current hierarchy, add “last-item” to the class attribute.

    This is useful for styling purposes, for example on our site we have a border on the menu items, but in some cases you get a double border.

    I’ve done this by modifying the function flexipages_list()


    $last = '';

    if ($page == end($page_array)) {
    $last = ' last-item';
    }

    and appending $last to the li class.

    <li class=”‘.$page[‘class’].$last.'”>

    http://wordpress.org/plugins/flexi-pages-widget/

  • The topic ‘feature request: Add css class last item in page list’ is closed to new replies.