BuddyDev

Search

[Resolved] Hide Register text in BP Regsiter form

  • Participant
    Level: Master
    Posts: 332
    Daniel on #32458

    Hi,

    Could you please tell me the CSS code in order that I can hide this message on register form but that the other BP Messages will not be affected please? I only want to hide this message:

    “Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.”

    Thank you.

    Regards
    Daniel

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 1536
    Ravi on #32459

    Hello Daniel,

    Thank you for posting. With BuddyPress Nouveau template it can be easily done as it provide a filter ‘bp_nouveau_feedback_messages’ so that you can use this and return empty string for the case. If you are using BuddyPress leagacy then it bit difficult using CSS as there is no specific id or class is added to the rendering element in that case you have to override the register.php into your active theme and remove that line.

    Please do let me know if you need further assistance.

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 332
    Daniel on #32460

    Hi Ravi,

    I have used this CSS to hide this message but the problem is that then it hides all the feedback BP messages or error messages as well when logged in in Buddypress.

    .buddypress-wrap .bp-feedback:not(.custom-homepage-info) {
    display: none;
    }

    Could you please provide the CSS code in order that it only affects this register message on register form and not all the feedback BP messages?

    Thank you.

    Regards
    Daniel

    PS: I use Buddypress Nouveau.

    • This reply was modified 8 months, 1 week ago by Daniel.
    • This reply was modified 8 months, 1 week ago by Daniel.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 1536
    Ravi on #32463

    Hello Daniel,

    That was expected. You can not hide this message using css. Try the following code if you are using Nouveau template pack

    
    add_filter( 'bp_nouveau_feedback_messages', function ( $args ) {
    
    	if ( isset( $args['request-details'] ) ) {
    		unset( $args['request-details'] );
    	}
    
    	return $args;
    } );
    
    

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 332
    Daniel on #32484

    Hi Ravi,

    The code has worked as it should.

    Thank you.

    Regards
    Daniel

    • This reply was modified 8 months ago by Daniel.

You must be logged in to reply to this topic.

This topic is: resolved
Subscribe