Forums

[resolved] current_page_item a:active problems (6 posts)

  1. taylerjay
    Member
    Posted 9 months ago #

    The active home page of my site: http://www.mpfsl.co.uk is highlighting the blog page on the footer navigation. This worked when first launched but is displaying incorrectly in the footer only. All other pages are correct. I've looked through the settings and all seems in order. Has anyone else had the same problem.

  2. keesiemeijer
    moderator
    Posted 9 months ago #

    try:
    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    - switching to the default theme to rule out any theme-specific problems?

  3. taylerjay
    Member
    Posted 9 months ago #

    Thanks for your response. I've deactivated all plugins and no change. Switched to default theme (Twenty Ten) which does not use the current_page_item. I guess there is an issue with my custom theme for the foot list.

  4. keesiemeijer
    moderator
    Posted 9 months ago #

    try adding a wp_reset_query(); after the loop. http://codex.wordpress.org/Function_Reference/wp_reset_query

  5. taylerjay
    Member
    Posted 9 months ago #

    I added the reset to the footer:

    '<ul class="footer_menu">
    <?php wp_reset_query(); ?>
    <?php wp_list_pages('title_li=&depth=1' );?>
    '

    this seems to have resolved the problem. Many thanks for your help.

  6. keesiemeijer
    moderator
    Posted 9 months ago #

    You're welcome. Glad you got it resolved.

Reply

You must log in to post.

About this Topic