Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove “Registered Users” from bbp Widget


  • yusareba
    Participant

    @yusareba

    I love the default bbpress Forum Statistics widget, however I don’t want everyone knowing how many members are registered to the site. Is there a way that I can remove this?

    I tried to do it with developer console and CSS but couldn’t find an identifier.

    Preferably, I would truly remove it rather than hide it.

    I will be monitoring this thread. Thank you!

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

  • yusareba
    Participant

    @yusareba

    Please someone D:


    Robin W
    Moderator

    @robin-w

    This can be done, but requires you to be able to use FTP and edit a file

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-statistics.php
    bbPress will now use this template instead of the original
    and you can amend this.

    so open the file and you will see starting at line 17

    <dt><?php _e( 'Registered Users', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['user_count'] ); ?></strong>
    	</dd>

    remove this and save the file back to wp-content/themes/%your-theme-name%/bbpress/content-statistics.php


    yusareba
    Participant

    @yusareba

    Removed :)) thank you so much Robin. A huge help as usual.


    Robin W
    Moderator

    @robin-w

    great – glad to have helped

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar