Title: Styling &#039;Recent Posts&#039; Widget
Last modified: August 20, 2016

---

# Styling 'Recent Posts' Widget

 *  [keljnr](https://wordpress.org/support/users/keljnr/)
 * (@keljnr)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/)
 * Hi, I’m wanting to edit the styling of the ‘Recent Posts’ widget.
    I have used
   a ‘Blank Theme’.
 * I’m wanting to use this styling:
 *     ```
       ul#articles{list-style-type:none;width:100%; background:none; border:none;}
       ul#articles li{margin: 0; border-bottom:1px solid #d1d1d1;   padding:2px 0;}
       ul#articles li a{margin: 0; text-decoration:none;}
       ```
   
 * Can you please advise 🙂
 * Ta! Kelvin.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714102)
 * Try using Firefox with the Firebug add-on for this kind of CSS work.
    [http://getfirebug.com/](http://getfirebug.com/)
 *  Thread Starter [keljnr](https://wordpress.org/support/users/keljnr/)
 * (@keljnr)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714132)
 * This is a brill tool cheers.
    The Recent Posts Widget uses the default ul; where
   can I edit this so I can give it the ‘articles’ ID?
 * So:
    `<ul id="articles">`
 * Cheers 🙂
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714169)
 * You can’t edit the widget itself as it’s part of core but your theme should be
   applying a unique class or id to its container.
 *  Thread Starter [keljnr](https://wordpress.org/support/users/keljnr/)
 * (@keljnr)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714171)
 * Thanks, I managed to solve this by changing the default-widgets.php in wp-includes
   folder. Cheers again Esmi!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714177)
 * No! Never, **ever**, edit WordPress core scripts. And do not encourage others
   to do so. Editing core scripts can bring down your entire site and/or open security
   holes for hackers to use.
 *  Thread Starter [keljnr](https://wordpress.org/support/users/keljnr/)
 * (@keljnr)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714180)
 * Understood Esmi! Thanks for the advice 🙂
 *  [paoPuscher](https://wordpress.org/support/users/paopuscher/)
 * (@paopuscher)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714373)
 * but you can edit a copy of the core scripts and put the on the child theme folder,
   right?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714374)
 * No – you _extend_ the native widgets via the theme – if necessary.

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

The topic ‘Styling 'Recent Posts' Widget’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/styling-recent-posts-widget/#post-2714374)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
