Adding "current-class" to the list item
-
Modify line 80 of child-page-navigation.php
echo "<li". ($page->ID == $post->ID ? " class='current-page'" : '') ."><a>ID)."'>".get_the_title($page->ID)."</a>";
to get class=”current-class” on the list item element then use display:none in the CSS to hide it.
I would have added here but the topic’s closed.
- The topic ‘Adding "current-class" to the list item’ is closed to new replies.