Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove @Username from profiles


  • tessl
    Participant

    @tessl

    Hi, I’ve looked everywhere for this option but can’t find an answer. I need to be able to remove the @username from the profile of the keymaster, as it’s a security issue having the username on display. Is this possible?

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

  • Robin W
    Moderator

    @robin-w

    Put this in the custom css part of your theme

    #bbpress-forums #bbp-user-wrapper h2.entry-title {
    	display: none;
    }

    abbyproton
    Participant

    @abbyproton

    Thank you so much. I had this problem as well and your solution using CSS helped fix it.


    Robin W
    Moderator

    @robin-w

    🙂


    tessl
    Participant

    @tessl

    Hi,

    I’ve tried adding this to the theme css and to the bbpress css and neither worked?

    Thanks,
    Tess


    Robin W
    Moderator

    @robin-w

    it may be a load order issue, try

    #bbpress-forums #bbp-user-wrapper h2.entry-title {
    	display: none !important;
    }

    tessl
    Participant

    @tessl

    That didn’t work either – I’ve tried it in the theme customiser, bb style pack plugin and simple custom css (wondering if I am doing something wrong, I am literally cutting and pasting?)


    tessl
    Participant

    @tessl

    Just a thought, if I can’t remove it completely is there a way to change it so it isn’t displaying my username but instead my first name?


    Robin W
    Moderator

    @robin-w

    link to an example on your site plaese


    tessl
    Participant

    @tessl

    Hi,

    Unfortunately I can’t provide a link due to the nature of the work we do (we work with people living with borderline personality disorder). I can provide screenshots but can’t seem to attach them here.


    Robin W
    Moderator

    @robin-w

    ok, so if my solution above does not work, your issue is site specific, so without visiting your site and an example I cannot give you code – in essence I can look at what the browser is receiving and see the correct code needed. You can contact me via my website

    Contact me

    and give me some access details, and I will try and help further.

    However alternately if you know how to use FTP, you could try this

    find
    wp-content/plugins/bbpress/templates/default/bbpress/user-profile.php

    transfer this to your pc and edit

    you will see that line 16 says

    <h2 class="entry-title">@<?php bbp_displayed_user_field( 'user_nicename' ); ?></h2>

    delete this line and save

    then 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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php

    bbPress will now use this template instead of the original

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