Hi there,
Fernandos code will only work if the sticky nav has a logo. Instead you can:
1. Add this PHP:
add_action('generate_inside_navigation', function(){
?>
<div class="sticky-brand site-branding">
<p class="main-title" itemprop="headline">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</p>
</div>
<?php
});
It will return the site title you have in your Customizer.
2. Add this CSS:
.sticky-brand .main-title a {
font-size: inherit;
font-weight: inherit;
}
.sticky-brand {
margin-right: auto;
}
.main-navigation:not(.is_stuck) .sticky-brand {
display: none;
}