Home › Forums › WoodMart support forum › Placing Category dropdown menu in sticky header › Reply To: Placing Category dropdown menu in sticky header
February 28, 2018 at 1:38 pm
#42898
Artem Temos
Keymaster
Try to add the following PHP code snippet to the child theme functions.php file to do this
function woodmart_sticky_header_categories(){
$template = '
<div class="whb-sticky-header whb-clone whb-main-header">
<div class="<%cloneClass%>">
<div class="container">
<div class="whb-flex-row whb-general-header-inner">
<div class="whb-column whb-col-left whb-visible-lg">
<%.header-categories-nav%>
</div>
<div class="whb-column whb-col-center whb-visible-lg">
<%.main-nav%>
</div>
<div class="whb-column whb-col-right whb-visible-lg">
<%.woodmart-header-links%>
<%.search-button%>
<%.whb-wishlist-icon%>
<%.woodmart-shopping-cart%>
</div>
<%.whb-mobile-left%>
<%.whb-mobile-center%>
<%.whb-mobile-right%>
</div>
</div>
</div>
</div>
';
return $template;
}
add_filter( 'woodmart_header_clone_template', 'woodmart_sticky_header_categories' );