Title: Modify html code in archives widget
Last modified: August 19, 2016

---

# Modify html code in archives widget

 *  [hstream](https://wordpress.org/support/users/hstream/)
 * (@hstream)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/modify-html-code-in-archives-widget/)
 * The Archives widget produce html code like this:
 *     ```
       <li id="archives-3" class="widget widget_archive">
       <h2 class="widgettitle">Arkiv</h2>
       <ul>
       <li><a href='link' title='February 2011'>February 2011</a> (5)</li>
       </ul>
       ```
   
 * If would like to change
 * `<li>` to `<li id="some_id">`. Is that possible without modifying core WP files?
   I’ve searched for archive plugins with no success.
    I know there is a way to 
   alter that list tag, by using CSS for the tag itself, but that would include 
   all other list tags too.
 * (I want this to have custom list image bullets for different widgets. See my 
   blog for an example, where I have managed to get it working for all widgets but
   the archive).
 * [http://springforfan.se/](http://springforfan.se/)

The topic ‘Modify html code in archives widget’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [hstream](https://wordpress.org/support/users/hstream/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/modify-html-code-in-archives-widget/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
