BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Remove description from category list
- This topic has 4 replies, 2 contibutors, and was last updated 9 years, 5 months ago by Alyssa.
Question
June 18, 2015 at 5:02 pm #41389@russellmillerHi,
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
June 18, 2015 at 8:26 pm #41394@alyssa-buddyboss
AlyssaParticipant@russellmiller about line 871 of theme-functions.php tells you to copy the function to your child theme and edit it there. Enjoy 🙂
June 19, 2015 at 1:57 am #41396@russellmillerthanks 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;June 19, 2015 at 2:13 am #41397@russellmillerAlso, 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.June 19, 2015 at 9:58 am #41408@alyssa-buddyboss
AlyssaParticipant@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.
- The question ‘Remove description from category list’ is closed to new replies.