Evan Herman (@eherman24)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • Evan Herman
    Participant

    @eherman24

    Unfortunately I missed the survey.

    I would love to see attachments and resolved/unresolved tagging. I heavily use bbpress for support forums with a few of my plugins, and have to install 2 or even 3 plugins to get it where I need it to be for a support forum.

    I would love to see a module of sorts added to bbpress code that enables support forum features.


    Evan Herman
    Participant

    @eherman24

    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
    	}
    
Viewing 2 replies - 1 through 2 (of 2 total)