Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove alert info


  • 1kan5
    Participant

    @1kan5

    Hello 🙂

    I would like to remove the alert info.

    I have made a screenshot to explain my problem

    thanks you for your support 🙂

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

  • Robkk
    Moderator

    @robkk

    Put this in your functions.php file in your child theme or place this php code snippet in a plugin like functionality.

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    
    function ja_return_blank() {
    
        return '';
    
    }

    1kan5
    Participant

    @1kan5

    Thanks you very much 🙂

    Have a nice day !


    1kan5
    Participant

    @1kan5

    Sorry i have another similar problem :

    have you a list of add_filter ??

    I would like to remove :
    “YOUR STATUS ON THIS FORUM YOU ALLOW THE POSTING WITHOUT LIMITATION HTML CONTENT”

    thanks you


    Robkk
    Moderator

    @robkk

    @1kan5

    Only Admins/Keymasters would see that notice. Do you still want to remove it anyway?


    1kan5
    Participant

    @1kan5

    yes please 🙂


    Robkk
    Moderator

    @robkk

    Since I don’t want you to remove all the notices with CSS that have the bbp-template-notice class. Copy the form-topic.php and form-reply.php templates into a folder called bbpress in your child theme and look for something like this code below, then remove it.

    <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
    
    	<div class="bbp-template-notice">
    		<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
    	</div>
    
    <?php endif; ?>

    1kan5
    Participant

    @1kan5

    Thanks you :)))

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