Title: [Plugin: SidePosts Widget] More specific CSS?
Last modified: August 19, 2016

---

# [Plugin: SidePosts Widget] More specific CSS?

 *  [helm2009](https://wordpress.org/support/users/helm2009/)
 * (@helm2009)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/)
 * Hi!
    Thanks for a great plug-in! I’ve been using it for a couple of versions 
   now and I really like it.
 * I have one small problem or rather one small wish. Could you please add some 
   <div>’s or <span>’s with class=”xxx” around the various elements. It would make
   my day a lot easier.
 * Thanks in advance,
    Henrik

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Txanny](https://wordpress.org/support/users/txanny/)
 * (@txanny)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1043712)
 * Well, there are no much elements on the widget, as it follows wordpress widgets
   standards.
 * You have:
 * `<li id="sideposts" class="widget widget_sideposts">` which holds the entire 
   widget.
 * `<h2 class="widgettitle">` the wordpress standard for widget titles.
 * And then you have an unordered list with all widget posts in the form:
 * `<ul>`
    `<li>`, the post title, `<span class="sideposts_date">` for the date,`
   <img>`for the excerpt thumbnail and a `<p>` tag for the post body.
 * With that I made all kinds of customization, think no more is needed, as only
   are three different elements: Title, Date, and Body. And already different tags
   are used for it.
 * But as always I’m open to suggestions, so tell me what and where you want classes
   added. If you think it will be more useful, I will add classes around all this
   elements in the next version.
 *  Thread Starter [helm2009](https://wordpress.org/support/users/helm2009/)
 * (@helm2009)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1043914)
 * Thanks! No need to add more!
 *  [gdkt11](https://wordpress.org/support/users/gdkt11/)
 * (@gdkt11)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044009)
 * I’m listing two to three sideposts on the right of each page. I’d like to add
   in some css to all but the last “li” so I do see a need for some sort of unique
   identifier at least on the first and last list item. Perhaps adding class=”first”
   to the first li and class=”last” to the last li could be added?
 * Thanks for your help. Your plugin is great.
    Katie
 *  [gdkt11](https://wordpress.org/support/users/gdkt11/)
 * (@gdkt11)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044010)
 * I ended up using this method: [http://snipplr.com/view/18407/jquery-select-first-andor-last-list-items/](http://snipplr.com/view/18407/jquery-select-first-andor-last-list-items/)
 *  [Bart](https://wordpress.org/support/users/bartclaeys/)
 * (@bartclaeys)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044026)
 * Still, there is no way to format the title with CSS.
 *  [Bart](https://wordpress.org/support/users/bartclaeys/)
 * (@bartclaeys)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044027)
 * Oway, I’m wrong, you can style the title by styling
 * #sidebar ul li.widget_sideposts ul a
 * This will affect all the links in your post, but that will be overridden by:
 * #sidebar ul li.widget_sideposts ul li p a
 * Not very clean, but owkay, it works 🙂
 *  [Txanny](https://wordpress.org/support/users/txanny/)
 * (@txanny)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044033)
 * Hope the changes introduced in the today’s release will help you with this issues:
 * Now you have this classes: sideposts-title, spli, spli-first and spli-last. If
   only showing one post, first and last does not apply.
 * [http://alkivia.org/sideposts/sideposts-2-4-2/](http://alkivia.org/sideposts/sideposts-2-4-2/)
 *  [8207h32](https://wordpress.org/support/users/8207h32/)
 * (@8207h32)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044039)
 * [@txanny](https://wordpress.org/support/users/txanny/)
 * > Now you have this classes: sideposts-title, spli, spli-first and spli-last.
   > If only showing one post, first and last does not apply.
   >  [http://alkivia.org/sideposts/sideposts-2-4-2/](http://alkivia.org/sideposts/sideposts-2-4-2/)
 * I just tried it, and it was awesome release.
    FYI, I just found the spli-last
   still didn’t correct typed in Sidepost Widget 2.4.2. In file sideposts/lib/class.
   sideposts-widget.php line 117 with commented code for Last item still typed spli-
   first.
 *  [Txanny](https://wordpress.org/support/users/txanny/)
 * (@txanny)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044040)
 * Thanks for reporting,
 * This has been solved and will be released with next version. You can see the 
   new source code here:
 * [http://code.alkivia.org/filedetails.php?repname=alkivia&path=/plugins/sideposts/trunk/lib/class.sideposts-widget.php](http://code.alkivia.org/filedetails.php?repname=alkivia&path=/plugins/sideposts/trunk/lib/class.sideposts-widget.php)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘[Plugin: SidePosts Widget] More specific CSS?’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [style sheet](https://wordpress.org/support/topic-tag/style-sheet/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 9 replies
 * 5 participants
 * Last reply from: [Txanny](https://wordpress.org/support/users/txanny/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-sideposts-widget-more-specific-css/#post-1044040)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
