We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb412d5 commit 0eec329Copy full SHA for 0eec329
themes/learn.jquery.com/sidebar.php
@@ -12,7 +12,7 @@
12
<ul>
13
<?php $chapters = learn_chapter_listing(); ?>
14
<?php while ( $chapters->have_posts() ) : $chapters->the_post(); ?>
15
- <?php $is_active = ($active_post->ID == $chapters->post->ID); ?>
+ <?php $is_active = ($active_post->ID == $chapters->post->ID) || ($active_post->post_parent == $chapters->post->ID); ?>
16
<li <?php if ($is_active) { echo "class='active'"; } ?>>
17
<a href="<?php the_permalink(); ?>">
18
<?php if ( get_post_meta( $post->ID, "icon" ) ) : ?>
0 commit comments