Merge pull request #70 from jessijean/master

Add wordpress theme logo feature - @jessijean Great! Was on my list... 👍
This commit is contained in:
Holger 2016-09-16 08:52:28 +02:00 committed by GitHub
commit e1ba1b12b2
2 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,7 @@
</button> </button>
<!-- Your site title as branding in the menu --> <!-- 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> </div>

View File

@ -74,6 +74,9 @@ function understrap_setup() {
'default-color' => 'ffffff', 'default-color' => 'ffffff',
'default-image' => '', 'default-image' => '',
) ) ); ) ) );
// Set up the Wordpress Theme logo feature.
add_theme_support('custom-logo');
} }
endif; // understrap_setup endif; // understrap_setup
add_action( 'after_setup_theme', 'understrap_setup' ); add_action( 'after_setup_theme', 'understrap_setup' );