Reply To: BBPress Single Forum Menu Item
Probably not the most elegant solution, but something I came up with to temporarily resolve the issue.
First we grab the classes assigned to the body class:
$body_class = get_body_class();
Then we just check if bbpress is in the body class array, and if it is, I’ve decided to use jQuery to just switch the classes on the navigation item.
if ( in_array('bbpress',$body_class) ) {
?>
<script>
jQuery(document).ready(function() {
jQuery('.menu-item-347').removeClass('current_page_parent');
jQuery('.menu-item-2592').addClass('current_page_parent');
});
</script>
<?php
}