I'm creating a 3-column child-theme of thematic, where the Parent Pages are on the secondary sidebar and the related child-pages show in the primary sidebar (when the parent page is clicked).
Now the Problem - I want to keep the parent page 'selected' while I'm browsing the child-pages. I can't figure how to maintain '.current_page_item a' selector for the parent while browsing the children.
In my child-theme functions.php:
The code for generating parent links:
<div id="secondary" class="aside main-aside thesecondary">
<ul class="xoxo">
-
<?php
$output = wp_list_pages('echo=0&depth=1&title_li=' );
echo $output;
?>
</div>
The code for generating child links:
<div id="primary" class="aside main-aside theprimary">
<ul class="xoxo">
-
<?php
$children=wp_list_pages( 'echo=0&child_of=' . is_subpage() . '&title_li=' );
echo $children;
?>
</div>
Where is_subpage() is the function to return parentID.