to make that you should change header.php file. And need to know how navigation menus works on wordpress
navigations menus
sometimes when you only copy from tutorials something can be conflicted on css files. When I do this, I change the Html/CSS class’es and id’s.
Thanks for the reply Tiago!
I now can resize my header when scroll, but problem is the logo image won’t resize together with header. I have edited my header html to the following:
<header id="masthead" class="site-header" role="banner">
<h1 id="logo">
<div class="site-logo" >
<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'> <img src='<?php echo esc_url( get_theme_mod( 'gridsby_logo' ) ); ?>'<?php if ( get_theme_mod( 'logo_size' ) ) : ?> width="<?php echo esc_attr( get_theme_mod( 'logo_size' ), __( '145', 'gridsby' )); ?>"<?php endif; ?> alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'></a>
</div><!-- site-logo --> </h1>
<h2 class="site-description" id="description"><?php bloginfo( 'description' ); ?></h2>
</header>
I seems can’t point to my logo image in css when using header.smaller method. Any idea how to to make it work?
Many thanks!
you can add a property in css to resize logo only when the header has “smaller” class (used on example)
.smaller > h1 > a > img{
height:30px;
}
if dosn’t work try to check the path of the logo img using css selectors:
http://www.w3schools.com/cssref/css_selectors.asp