Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I remove tags box when replying?

  • @splashtalk

    Participant

    So yeah is there a way to remove the tags box when users want to reply on a topic?
    http://gyazo.com/59c4e599d8b40208ef899aa0b61ae059

    Also just wondering if it is possible to change the shape and size of the reply box?
    Aswell as the font that users reply?

    If you can help it would be amazing
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • @robkk

    Moderator

    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

    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

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

    @gkldh

    Participant

    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

    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