Google Groups Home
Help | Sign in
Difficulties with current page indication in top nav menu
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
avere  
View profile
 More options Apr 6, 5:18 pm
From: avere <anamaria.v...@gmail.com>
Date: Sun, 6 Apr 2008 14:18:34 -0700 (PDT)
Local: Sun, Apr 6 2008 5:18 pm
Subject: Difficulties with current page indication in top nav menu
I am using Fauna Nocturnal style on Wordpress 2.5 and I am having some
difficulties getting the top nav menu to highlight the current page in
the way I think it should. It works as I think it should if I am on
the home page or if I am on my Archives or Contact page. For any other
page however, the 'home' links is shown as the current page. Looking
at the code for this in the header, I would have thought that when
viewing a post or category archive, the 'archives' link would show as
the current page. This is not happening though, and I wonder if
someone knows why, or if I have misunderstood how this should work.
The site in question is <a href="http://www.anamaria.ca/">here</a>.

In addition, I added a page and then using the "Page Links To" plugin
had it point to a custom category template. This page therefore shows
in the top menu as 'gallery', but the link goes to a category archive
for my 'gallery' category, which is category number 34. I have tried
modifying the header.php file so that 'gallery' is highlighted as the
current page when this page is visited or when archive pages for posts
in this category are visited, but I cannot get it to work. The code I
have modified from header.php is:

                                <li class="<?php if (is_home() or is_archive() or is_single() or
is_paged() or is_search() or is_category('34') or in_category('34'))
{ ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?
php echo get_settings('home'); ?>/" title="<?php fauna_info('tab'); ?

>" accesskey="1"><?php fauna_info('tab'); ?></a></li>

The entire gallery category archive code can be viewed <a href="http://
www.anamaria.ca/downloads/category-34.phps">here</a> and the
header.php file can be viewed <a href="http://www.anamaria.ca/
downloads/header.phps">here</a>.

I am quite out of my depth with all of this so my thanks to anyone who
can shed a bit of light on this for me.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google