• Oh man.

    I’ve been scouring the forums and cannot for the life of me find a solution to this problem. I’ve come across several unresolved threads, so I know it’s not just me.

    Background:
    I needed to display pages and categories side-by-side in the menu of my wordpress blog. I’ve installed the page-links-to plugin to accomplish this and it works like a charm for the most part. So, using page links to, my ‘Articles’ page redirects to categories/articles. Perfect.

    Problem:
    I need to style my menu so that the current page is highlighted. Should be simple by defining a style for the class “current_page_item”. The problem is that pages redirected by the ‘page links to’ plugin to not get the class “current_page_item”. In fact, they get nothing.

    I know my CSS is correct because when I disable the plugin, the menu is styled as I intended it to be (but of course, the pages no longer point to the categories).

    So, in my code, a current page looks like:
    <li class="page_item page-item-2 current_page_item">

    And a current page that has been generated by the plugin looks like this:
    <li class="page_item page-item-103">

    The Page-Links-To docs state that “If you link to an internal WordPress page, like a category, the menu item will get the current_item CSS class when you’re on that page” — but as you can see, the page generated by the plugin doesn’t get a class assigned at all.

    I’ve seen this same problem duplicated all over these forums, but all are unresolved. Does anyone have any idea what’s up with this?
    ??

    Thanks in advance for any help…
    -Andy

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page-links-to NOT assigning a “current_page_item” class!’ is closed to new replies.