Title: sidebar.php keeps adding li /li
Last modified: August 18, 2016

---

# sidebar.php keeps adding li /li

 *  [kshack](https://wordpress.org/support/users/kshack/)
 * (@kshack)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/sidebarphp-keeps-adding-li-li/)
 * No matter what I do it seems sidebar.php keeps adding li and /li under Categorys,
   archives and meta.. Is there a way to get rid of that?
 * It seems this code in sidebar.php somehow adds it.
    <?php list_cats(0, ”, ‘name’,‘
   asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>

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

 *  [marzar00](https://wordpress.org/support/users/marzar00/)
 * (@marzar00)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/sidebarphp-keeps-adding-li-li/#post-318474)
 * You could always try a little CSS.
 * For example set the list style to none and the pading to 0. Thats what I use.
 * Marzar
 *  Thread Starter [kshack](https://wordpress.org/support/users/kshack/)
 * (@kshack)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/sidebarphp-keeps-adding-li-li/#post-318550)
 * I found out a way without css and just editing the sidebar.php
    changed <?php
   list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?> to <?php 
   list_cats(0, ”, ‘name’, ‘asc’, ”, 0, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>
 * also changed
    <?php wp_get_archives(‘type=monthly’); ?> to <?php wp_get_archives(‘
   type=monthly&format=custom’); ?>

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

The topic ‘sidebar.php keeps adding li /li’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [kshack](https://wordpress.org/support/users/kshack/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/sidebarphp-keeps-adding-li-li/#post-318550)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
