I love this theme, so I'm hoping you can help me figure one small thing out. When I declare that certain pages (nodes) appear as PRIMARY LINKS, not all of them appear "active" at the appropriate time in the orange bar.

When the primary link is pointing to a true node/page, the links (when active) display a white triangle & dark orange box. A quick "view source" shows this is due to a "class=active" tag. However, when the primary link points to the home page or the search page, the CSS doesn't create the "active" look.

Is there an easy fix for this?

ps. This weblink probably will disappear soon, but here's my demonstration of the problem. Although the search page is active, the "search" link in the orange bar doesn't show this.

http://russellmac.no-ip.com:8888/drupal/search/node

Thanks!

CommentFileSizeAuthor
css-problem.jpg49.06 KBscottrussell-1
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scottrussell-1’s picture

After a thorough search of these forums, I found a solution for *half* of my problem. This following link offers a fix for the problem of declaring the home page as active in a CSS tag.

http://drupal.org/node/65762

But I still can't find a solution for making the search page active. Any tips?

hswong3i’s picture

reason: the URL format is not match
solution: change the format of link within "primay link" to match the final URL format

detail:
I use URL format matching for highlight the currenct active link (see template.php)
i think you use "<front>" for homepage and "search" for search page
but since "<front>" is not equal to /, and search is not equal to search/node
the link won't highlight

scottrussell-1’s picture

Status: Active » Closed (fixed)

Thank you, hswong3i. Your tip did the trick. Issue resolved!