Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bullets n Numbers?

  • @auriel

    Participant

    WordPress 4.0 running Montezuma theme.
    bbPress 2.5.4
    http://ecopsi.org/forums/
    As you should be able to see, the bullets in the theme are overlaying the numbers that are being generated by bbPress. They only appear at the root of the forum and I have no idea what the numbers mean. Since they don’t add value to the experience of using the forum I would just as soon not have them cluttering up the layout. How can I comment them out?
    Bullets overlapping numbers
    Bullets are sprites

    Also, how do I change the name of the Forum <root> in the breadcrumb?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @thebrandonallen

    Participant

    The numbers represent the topic/post counts of each individual forum. For instance “Cognition (0, 0)” is equivalent to “Cognition (0 topics, 0 posts).”

    In your theme’s functions.php file you can add the below to remove the counts:

    function my_remove_list_forums_counts( $args = array() ) {
    	if ( ! empty( $args ) ) {
    		$args['show_topic_count'] = false;
    		$args['show_reply_count'] = false;	
    	}
    	return $args;
    }
    add_filter( 'bbp_after_list_forums_parse_args', 'my_remove_list_forums_counts' );

    To change the breadcrumb root add the below code to the same functions.php file as above:

    function my_change_forum_root_breadcrumb_title( $args = array() ) {
    	if ( ! empty( $args ) ) {
    		$args['root_text'] = 'This used to be Forums';
    	}
    	return $args;
    }
    add_filter( 'bbp_before_get_breadcrumb_parse_args', 'my_change_forum_root_breadcrumb_title' );

    @auriel

    Participant

    Dude you are awesome.
    Thank you so much.
    A couple of things: The counts are gone but now the bullets are layered over the names of the forums. Is there a way to leave the main theme’s bullets alone but in the Forum bbPress reverts to generic bullet points that it’s compatible with?
    http://ecopsi.org/forums/

    Also I must have made a mistake with the breadcrumb code.

    // Custom breadcrumb label for bbPress
    function my_change_forum_root_breadcrumb_title( $args = array() ) {
    	if ( ! empty( $args ) ) {
    		$args['root_text'] = 'The EcoPsi Forums';
    	}
    	return $args;
    }
    add_filter( 'bbp_before_get_breadcrumb_parse_args', 'my_change_forum_root_breadcrumb_title' );

    @thebrandonallen

    Participant

    The code I provided doesn’t mess with the bullets. That’s handled by your theme. You could try something like below, but it hides the arrow bullets for those forum listings.

    .hentry ul ul.bbp-forums-list li i {
        background: none;
    }

    To fix the breadcrumb title, use the below instead.

    function my_change_forum_root_breadcrumb_title( $args = array() ) {
    	$args['root_text'] = 'The EcoPsi Forums';
    	return $args;
    }
    add_filter( 'bbp_before_get_breadcrumb_parse_args', 'my_change_forum_root_breadcrumb_title' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar