Title: Page Navigation
Last modified: August 18, 2016

---

# Page Navigation

 *  [driz](https://wordpress.org/support/users/driz/)
 * (@driz)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/)
 * Hi i noticed on the pages, they have a class of page_item, and for those that
   are selected: page_item current_page
 * I want to change this so the li’s don’y have any classes on them at all by default,
   and when the page is being viewed, it has a class of “selected” and not the double
   one.
 * Which WordPress file needs to be edited to do this? Thanks

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/#post-580290)
 * Why would you edit WP core files – instead of using what is already there and
   working?
    The “current…” is the Page you are on. Use your stylesheet to display
   it differently. Does it matter what the class’ name is?
 *  [magcrossin](https://wordpress.org/support/users/magcrossin/)
 * (@magcrossin)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/#post-580312)
 * Sorry but im a bit cofused where to post a new problem. So I decided to put it
   with a similar topic.
    I have installed “Collapsing Page Menus Plugin”, activated
   it, changed the code on my sidebar.php. But then nothing has changed. I dont 
   see any difference in the dashboard manage page section/wigets or on the pages
   it’s self. How do I get it to Collapsing Page Menus? If anyone can help I would
   really apppreciated it.
 *  Thread Starter [driz](https://wordpress.org/support/users/driz/)
 * (@driz)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/#post-580410)
 * I have decided i want to edit the WP files. Please can you tell me what to edit.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/#post-580416)
 * Sorry, I can’t. I am not a coder and I never edit WP core files…
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/#post-580422)
 * If you are using the native 2.2 widgets, then the widget are probably overriding
   the sidebar editting you are doing.
 * Maybe you can find a Collapsing Pages Widget.
 *  [walterego](https://wordpress.org/support/users/walterego/)
 * (@walterego)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/#post-580432)
 * driz, if you really want to edit the core, the file is wp-includes/classes.php(
   line 490). However, editing it is completely unnecessary. li’s having classes
   on them is not a bad thing or something, and li’s having a double class on them
   isn’t either. Just change the behaviour/appearance of the li’s in your css.

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

The topic ‘Page Navigation’ is closed to new replies.

## Tags

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

 * 6 replies
 * 5 participants
 * Last reply from: [walterego](https://wordpress.org/support/users/walterego/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/page-navigation-1-2/#post-580432)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
