Skip to content

Instantly share code, notes, and snippets.

@anastransvelo
Created August 29, 2017 11:25
Show Gist options
  • Save anastransvelo/a6f5a344337fe1371d09321e55a5f3da to your computer and use it in GitHub Desktop.
Save anastransvelo/a6f5a344337fe1371d09321e55a5f3da to your computer and use it in GitHub Desktop.
Shoesmarket Custom header changes
function tm_header_v8_search() {
?>
<div class="dropdown shoesmarket-search search">
<button class="btn btn-block" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-search" aria-hidden="true"></i></button>
<div class="dropdown-menu search-dropdown fadeIn animated">
<?php techmarket_navbar_search(); ?>
</div>
</div>
<?php
}
add_action( 'techmarket_header_v8', 'tm_header_v8_search', 25 );
.header-v8.site-header .sticky-wrapper .techmarket-sticky-wrap.stuck {
padding-left: 0;
padding-right: 0;
}
.shoesmarket-search {
position: static;
}
.shoesmarket-search > button{
background: transparent;
font-size: 20px;
}
.shoesmarket-search > button:hover {
color: #43454b;
}
.shoesmarket-search .animated {
-webkit-animation-duration: .3s;
animation-duration: .3s;
}
.shoesmarket-search .search-dropdown {
right: 0;
left: 0;
border: none;
z-index: -100000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment