Thanks so much for your help again @ariane98. ??
@bubdadigger: You’ll need to copy/paste the sela_entry_meta()
function to your child theme’s functions.php file and edit there:
function sela_entry_meta() {
// Sticky
if ( is_sticky() && is_home() && ! is_paged() ) {
echo '<span class="featured-post">' . __( 'Featured', 'sela' ) . '</span>';
}
// Date
if ( ! is_sticky() ) {
sela_entry_date();
}
// Comments
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '<span class="comments-link">';
comments_popup_link( __( 'Leave a comment', 'sela' ), __( '1 Comment', 'sela' ), __( '% Comments', 'sela' ) );
echo '</span>';
}
// Edit link
edit_post_link( __( 'Edit', 'sela' ), '<span class="edit-link">', '</span>' );
}
Depending on what you’re trying to achieve, you could also borrow code from the sela_footer_entry_meta()
function:
function sela_footer_entry_meta() {
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list( __( ', ', 'sela' ) );
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list( '', ', ' );
if ( ! sela_categorized_blog() ) {
// This blog only has 1 category so we just need to worry about tags in the meta text
if ( '' != $tag_list ) {
$meta_text = '<span class="tags-links">' . esc_html__( 'Tagged: %2$s', 'sela' ) . '</span>';
} else {
$meta_text = __( '<a href="%3$s" title="Permalink to %4$s" rel="bookmark">Permalink</a>.', 'sela' );
}
} else {
// But this blog has loads of categories so we should probably display them here
if ( '' != $tag_list ) {
$meta_text = '<span class="cat-links">' . esc_html__( 'Posted in: %1$s', 'sela' ) . '</span><span class="sep"> | </span><span class="tags-links">' . esc_html__( 'Tagged: %2$s', 'sela' ) . '</span>';
} else {
$meta_text = '<span class="cat-links">' . esc_html__( 'Posted in: %1$s', 'sela' ) . '</span>';
}
} // end check for categories on this blog
printf(
$meta_text,
$category_list,
$tag_list,
esc_url( get_permalink() ),
the_title_attribute( 'echo=0' )
);
}
Hope that helps out!