How to hide 'time, category, author, comments'

I'd like to hide some items on my blog pages:
- creation time/date
- category
- author
- comments (the line that says: Comments are closed)

Thanks in advance.

  • Rahul Verma

    Hello,

    I hope you are well today and Thanks for posting on the forums.

    You need to do changes in wp-content/themes/bp-business/template-blog.php on line 35 as below.

    Before :

    <p class="date"><?php the_time('M j Y') ?><?php _e( 'in', TEMPLATE_DOMAIN ) ?> <?php the_category(', ') ?> <?php the_author_link(); ?><span class="tags"><?php the_tags( __( 'Tags: ', TEMPLATE_DOMAIN ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', TEMPLATE_DOMAIN ), __( '1 Comment »', TEMPLATE_DOMAIN ), __( '% Comments »', TEMPLATE_DOMAIN ) ); ?></span></p>

    After :

    <p class="date"><span class="tags"><?php the_tags( __( 'Tags: ', TEMPLATE_DOMAIN ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', TEMPLATE_DOMAIN ), __( '1 Comment »', TEMPLATE_DOMAIN ), __( '% Comments »', TEMPLATE_DOMAIN ) ); ?></span></p>

    the line that says: Comments are closed

    You need to do changes in wp-content/themes/bp-business/comments.php on line 53 as below.

    Before :

    <p class="comments-closed">
    			<?php _e( 'Comments are closed.', TEMPLATE_DOMAIN ) ?>
    		</p>

    After :

    <p class="comments-closed">
    
    </p>

    You may remove this div with class="comments-closed".

    I hope that helps. Please feel free to ask if you have more questions on the same.

    Best Regards
    Sandeep Kumar

  • Rahul Verma

    Hello @Jermaine,

    You need to do changes in wp-content/themes/bp-business/single.php on line 15 as below.

    Before :

    <?php if( $bp_existed == 'true' ) { //check if bp existed ?>
    					<p class="date"><?php the_time('M j Y') ?><?php _e( 'in', TEMPLATE_DOMAIN ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', TEMPLATE_DOMAIN ), bp_core_get_userlink($post->post_author) ) ?><span class="tags"><?php the_tags( __( 'Tags: ', TEMPLATE_DOMAIN ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', TEMPLATE_DOMAIN ), __( '1 Comment »', TEMPLATE_DOMAIN ), __( '% Comments »', TEMPLATE_DOMAIN ) ); ?></span></p>
    							<?php } else { // if not bp detected..let go normal ?>
    						<p class="date"><?php the_time() ?><?php _e( 'in', TEMPLATE_DOMAIN ) ?> <?php the_category(', ') ?> <?php the_author_link(); ?><span class="tags"><?php the_tags( __( 'Tags: ', TEMPLATE_DOMAIN ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', TEMPLATE_DOMAIN ), __( '1 Comment »', TEMPLATE_DOMAIN ), __( '% Comments »', TEMPLATE_DOMAIN ) ); ?></span></p>
    							<?php } ?>

    After :

    <?php if( $bp_existed == 'true' ) { //check if bp existed ?>
    					<p class="date"><span class="tags"><?php the_tags( __( 'Tags: ', TEMPLATE_DOMAIN ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', TEMPLATE_DOMAIN ), __( '1 Comment »', TEMPLATE_DOMAIN ), __( '% Comments »', TEMPLATE_DOMAIN ) ); ?></span></p>
    							<?php } else { // if not bp detected..let go normal ?>
    						<p class="date"><span class="tags"><?php the_tags( __( 'Tags: ', TEMPLATE_DOMAIN ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', TEMPLATE_DOMAIN ), __( '1 Comment »', TEMPLATE_DOMAIN ), __( '% Comments »', TEMPLATE_DOMAIN ) ); ?></span></p>
    							<?php } ?>

    Let me know if it works for you.

    Best Regards
    Sandeep Kumar

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.