update styles for input textarea and fallback for profile photo
This commit is contained in:
parent
50c48115e8
commit
23572fb728
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue