Browse Source

microformat updates

master
Nathan DeGruchy 5 months ago
parent
commit
2cfd54a417
  1. 18
      functions.php
  2. 2
      template-parts/post/author-bio.php

18
functions.php

@ -255,24 +255,6 @@
echo '</span>';
}
/**
* Prints HTML with meta information about theme author.
*
* @since Twenty Twenty-One 1.0
*
* @return void
*/
function twenty_twenty_one_posted_by() {
if ( ! get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) {
echo '<span class="byline p-author h-card">';
printf(
/* translators: %s: Author name. */
esc_html__( 'By %s', 'twentytwentyone' ),
'<a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" rel="author">' . esc_html( get_the_author() ) . '</a>'
);
echo '</span>';
}
}
add_filter( 'twenty_twenty_one_social_icons_map', 'degruchy_twenty_twenty_one_social_icons_map' );
add_filter( 'twenty_twenty_one_svg_icons_social', 'degruchy_twenty_twenty_one_svg_icons_social' );
add_filter( 'get_the_archive_title', 'degruchy_org_disable_archive_prefix' );

2
template-parts/post/author-bio.php

@ -13,7 +13,7 @@ $avatarargs = array(
?>
<?php if ( (bool) get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) : ?>
<div class="author-bio h-card <?php echo get_option( 'show_avatars' ) ? 'show-avatars' : ''; ?>">
<div rel="author" class="author-bio h-card <?php echo get_option( 'show_avatars' ) ? 'show-avatars' : ''; ?>">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 85, 'mm', '', $avatarargs ); ?>
<div class="author-bio-content">
<h2 class="author-title p-name">

Loading…
Cancel
Save