Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Forked from anastransvelo/function.php
Created August 29, 2017 13:06
Show Gist options
  • Save ibndawood/d53a30a8fc9018a7c7c0d7061f4d276c to your computer and use it in GitHub Desktop.
Save ibndawood/d53a30a8fc9018a7c7c0d7061f4d276c 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