• 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)
  • 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?

    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

    (@driz)

    I have decided i want to edit the WP files. Please can you tell me what to edit.

    Sorry, I can’t. I am not a coder and I never edit WP core files…

    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.

    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.