Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I remove tags box when replying?

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

  • Robkk
    Moderator

    @robkk

    Copy the form-reply.php file into your child theme and remove this code for topic tags input on the reply form.

    <?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>
    
    <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?>
    
    	<p>
    	<label for="bbp_topic_tags"><?php esc_html_e( 'Tags:', 'bbpress' ); ?></label><br />
    	<input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    	</p>
    
    <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
    
    <?php endif; ?>

    You can customize the content of the form using this CSS.

    #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
        margin-top: 0;
        height: 210px;
    }

    The font is inherited from your theme.


    Jon Fergus
    Participant

    @jon-fergus

    Just thought I’d share this here, as an alternative option. You can also hide the tag label and input form using css:

    input#bbp_topic_tags {
    display: none;
    }
    label[for=bbp_topic_tags] {
    display: none !important;
    }


    gkldh
    Participant

    @gkldh

    thanks jon, its working. Can it be removed with remove_action('','') this also?


    gkldh
    Participant

    @gkldh

    ohh soryy thanks for @robkk. its working but i have question in my mind Can it be removed with remove_action(”,”) this also?


    Robin W
    Moderator

    @robin-w

    it cannot be removed with remove_action as the code is not part of an action.

    input#bbp_topic_tags {
    display: none;
    }
    label[for=bbp_topic_tags] {
    display: none !important;
    }

    Putting the above in your custom css area should do it

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