The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to keep parent page main menu link current while on child page?
#1
I am not sure I'm wording this correctly, but I have two menu bars on my site: A top level nav bar and a sub page nav bar showing child pages where applicable.

The main menu is made up of individual css sprites and set up manually in css using the .current class.

The child menu is made using Erik's Child Menu Plugin http://www.fohlin.net/getsimple-child-menu-plugin and styled appropriately using the
Code:
#child_menu .current a
css markup.

What I would like to do is have the link to the parent page stay "current" while someone is on that page's children. I'd also like the current state of the child pages to keep functioning properly as well.

I suspect I'm making this sound more complicated than it is, so here is the site I am talking about...

When at http://www.newenglanddrawings.com/drawings/ you will see the current state of the drawings page link is underlined.

If you click any of the sub page links, let's say http://www.newenglanddrawings.com/drawings/pen-and-ink the child page link turns current, but the parent page link is now no longer indicated as current.

How do I bend this to my will to let people know they are in a certain "section" of my site?

I am a total php / functions newbie, so I fear I will need pretty detailed instructions if coding is involved. I'm hoping the solution is easier than I am making it sound.

Thanks for any suggestions.
Reply


Messages In This Thread
How to keep parent page main menu link current while on child page? - by Dominic - 2012-02-01, 15:05:18



Users browsing this thread: 2 Guest(s)