update styles for input textarea and fallback for profile photo

This commit is contained in:
Evan Mullins 2019-03-12 10:46:05 -06:00
parent 50c48115e8
commit 23572fb728
2 changed files with 10 additions and 0 deletions

View file

@ -128,6 +128,14 @@ body.logged-in .menu-item.logged-in {
/* profile */
.acf-field textarea {
font-size: 18px;
overflow-wrap: normal;
white-space: normal;
word-break: normal;
padding: .5rem;
}
.acf-input .acf-url i {
top: 12px;
}

View file

@ -10,6 +10,8 @@
$userimg = get_field( 'photo', 'user_' . $userid );
if ( $userimg ) {
echo wp_get_attachment_image( $userimg, 'medium' );
} else {
echo '<img src="' . get_stylesheet_directory_uri() . '/img/default.svg">';
}
?></div>
<?php