Hello vladff,
I have put the desired code above <?php sydney_slider_template(); ?> and it works 50% right. And when i mean half working you can check it out at this address: https://www.digitallifeage.com/cms/fashion/
The sticky menu when it goes down, the logo and the menu buttons are remaining in the first place where they were. They don’t follow the white little sticky bar…
Can you help me with this or direct me to some link so i can find a solution?
I attach you below the code i tweak together with the original:
original
—————-
<?php sydney_slider_template(); ?>
<header id=”masthead” class=”site-header” role=”banner”>
<div class=”header-wrap”>
<div class=”container”>
<div class=”row”>
<div class=”col-md-4 col-sm-8 col-xs-12″>
<?php if ( get_theme_mod(‘site_logo’) ) : ?>
” title=”<?php bloginfo(‘name’); ?>”><img class=”site-logo” src=”<?php echo esc_url(get_theme_mod(‘site_logo’)); ?>” alt=”<?php bloginfo(‘name’); ?>” />
<?php else : ?>
<h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
<?php endif; ?>
</div>
<div class=”col-md-8 col-sm-4 col-xs-12″>
<div class=”btn-menu”></div>
<nav id=”mainnav” class=”mainnav” role=”navigation”>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘sydney_menu_fallback’ ) ); ?>
</nav><!– #site-navigation –>
</div>
</div>
</div>
</div>
</header><!– #masthead –>
<div class=”header-image”><div class=”overlay”></div></div>
Tweaked
—————
<div class=”header-wrap”>
<div class=”container”>
<div class=”row”>
<div class=”col-md-4 col-sm-8 col-xs-12″>
<?php if ( get_theme_mod(‘site_logo’) ) : ?>
” title=”<?php bloginfo(‘name’); ?>”><img class=”site-logo” src=”<?php echo esc_url(get_theme_mod(‘site_logo’)); ?>” alt=”<?php bloginfo(‘name’); ?>” />
<?php else : ?>
<h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
<?php endif; ?>
</div>
<div class=”col-md-8 col-sm-4 col-xs-12″>
<div class=”btn-menu”></div>
<nav id=”mainnav” class=”mainnav” role=”navigation”>
<?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘sydney_menu_fallback’ ) ); ?>
</nav><!– #site-navigation –>
</div>
</div>
</div>
</div>
<?php sydney_slider_template(); ?>
<header id=”masthead” class=”site-header” role=”banner”>
Thanks in advanced.