Merge pull request #70 from jessijean/master
Add wordpress theme logo feature - @jessijean Great! Was on my list... 👍
This commit is contained in:
commit
e1ba1b12b2
|
@ -47,7 +47,7 @@
|
|||
</button>
|
||||
|
||||
<!-- Your site title as branding in the menu -->
|
||||
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
|
||||
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php if ( !has_custom_logo() ) { bloginfo( 'name' ) } else { the_custom_logo() } ?></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -74,6 +74,9 @@ function understrap_setup() {
|
|||
'default-color' => 'ffffff',
|
||||
'default-image' => '',
|
||||
) ) );
|
||||
|
||||
// Set up the Wordpress Theme logo feature.
|
||||
add_theme_support('custom-logo');
|
||||
}
|
||||
endif; // understrap_setup
|
||||
add_action( 'after_setup_theme', 'understrap_setup' );
|
||||
|
|
Reference in New Issue