qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
7 additions
and
1 deletions
| ... | @@ -29,5 +29,11 @@ if ( ! has_custom_logo() ) { ?> | ... | @@ -29,5 +29,11 @@ if ( ! has_custom_logo() ) { ?> |
| 29 | 29 | ||
| 30 | <?php | 30 | <?php |
| 31 | } else { | 31 | } else { |
| 32 | the_custom_logo(); | 32 | $custom_logo_id = get_theme_mod( 'custom_logo' ); |
| 33 | $logo = wp_get_attachment_image_src( $custom_logo_id , 'full' ); | ||
| 34 | if ( has_custom_logo() ) { | ||
| 35 | echo '<img width="150" height="62" src="' . esc_url( $logo[0] ) . '" alt="' . get_bloginfo( 'name' ) . '">'; | ||
| 36 | } else { | ||
| 37 | echo '<h1>' . get_bloginfo('name') . '</h1>'; | ||
| 38 | } | ||
| 33 | } | 39 | } | ... | ... |
-
Please register or sign in to post a comment