BuddyBoss Home – Web Support Forums Themes Boss. theme Remove description from category list

Viewing 5 posts - 1 through 5 (of 5 total)
  • Question

    #41389
    @russellmiller

    Hi,

    I’d like to remove the description, date and comments from the category list.
    How do I do that? I looked in category.php for Boss but it wasn’t obvious.

    Thanks!

    Answers

    #41394

    Alyssa
    Participant
    @alyssa-buddyboss

    @russellmiller about line 871 of theme-functions.php tells you to copy the function to your child theme and edit it there. Enjoy 🙂

    #41396
    @russellmiller

    thanks TJ, I see where to get the meta info, but where do I find the function that has shows the first few lines as a summary? Doesn’t seem to be in this function:

    function buddyboss_entry_meta($show_author = true, $show_date = true , $show_comment_info = true) {
    // Translators: used between list items, there is a space after the comma.
    $categories_list = get_the_category_list( __( ‘, ‘, ‘boss’ ) );

    // Translators: used between list items, there is a space after the comma.
    $tag_list = get_the_tag_list( ”, __( ‘, ‘, ‘boss’ ) );

    $date = sprintf( ‘<time class=”entry-date” datetime=”%3$s” pubdate>%4$s</time></span>’,
    esc_url( get_permalink() ),
    esc_attr( get_the_time() ),
    esc_attr( get_the_date( ‘c’ ) ),
    esc_html( get_the_date() )
    );

    $author = sprintf( ‘<span class=”author vcard”>%3$s</span>’,
    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
    esc_attr( sprintf( __( ‘View all posts by %s’, ‘boss’ ), get_the_author() ) ),
    get_the_author()
    );

    if (function_exists(‘get_avatar’)) {
    $avatar = sprintf( ‘%2$s‘,
    esc_url( get_permalink() ),
    get_avatar( get_the_author_meta(’email’), 55 )
    );
    }

    if($show_author) {
    echo ‘<span class=”post-author”>’;
    echo $avatar;
    echo $author;
    echo ‘</span>’;
    }

    if($show_date) {
    echo $date;
    }

    if($show_comment_info) {
    if ( comments_open() ) : ?>
    <!– reply link –>
    <span class=”comments-link fa fa-comment-o”>
    <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘0 comments’, ‘boss’ ) . ‘</span>’, __( ‘1 comment’, ‘boss’ ), __( ‘% comments’, ‘boss’ ) ); ?>
    </span><!– .comments-link –>
    <?php endif; // comments_open()
    }

    }
    endif;

    #41397
    @russellmiller

    Also, can you tell me where I can find the post title in the category list template?
    I would like to make each post title a link.

    #41408

    Alyssa
    Participant
    @alyssa-buddyboss

    @russellmiller sorry, content.php is the file to edit I believe. Line 25 has is_archive in the if statement, you may want to add another if statement to include only archive so you don’t edit the home page or search page.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The question ‘Remove description from category list’ is closed to new replies.