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