fix author meta layout for if there's no avatar
This commit is contained in:
parent
706c524755
commit
93b1e1ef7c
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ get_header(); ?>
|
||||||
// If a user has filled out their description, show a bio on their entries.
|
// If a user has filled out their description, show a bio on their entries.
|
||||||
if ( get_the_author_meta( 'description' ) ) { ?>
|
if ( get_the_author_meta( 'description' ) ) { ?>
|
||||||
<div id="author-info" class="d-flex flex-row mb-4 tek-border-bottom-gray-dashed">
|
<div id="author-info" class="d-flex flex-row mb-4 tek-border-bottom-gray-dashed">
|
||||||
<div id="author-avatar" class="flex-shrink-0 me-3 pt-1">
|
<div id="author-avatar" class="flex-shrink-0">
|
||||||
<?php echo get_avatar( get_the_author_meta( 'user_email' ), $size = '96', $default = '', $alt = '', $args = array( 'class' => 'rounded-3' )); ?>
|
<?php echo get_avatar( get_the_author_meta( 'user_email' ), $size = '96', $default = '', $alt = '', $args = array( 'class' => 'rounded-3 me-3 pt-1' )); ?>
|
||||||
</div><!-- #author-avatar -->
|
</div><!-- #author-avatar -->
|
||||||
<div id="author-description" class="flex-grow-1 mb-2">
|
<div id="author-description" class="flex-grow-1 mb-2">
|
||||||
<h1 class="text-muted fst-italic mb-0"><?php printf( __( 'Author: %s', '' ), get_the_author() ); ?></h1>
|
<h1 class="text-muted fst-italic mb-0"><?php printf( __( 'Author: %s', '' ), get_the_author() ); ?></h1>
|
||||||
|
|
Loading…
Reference in a new issue