Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created September 25, 2018 17:35
Show Gist options
  • Save ibndawood/614cebe1737932291f7845763a442666 to your computer and use it in GitHub Desktop.
Save ibndawood/614cebe1737932291f7845763a442666 to your computer and use it in GitHub Desktop.
Techmarket - Departments menu open by default
function techmarket_departments_menu() {
?>
<div id="departments-menu" class="dropdown departments-menu open show">
<?php
$departments_menu_title = techmarket_is_woocommerce_activated() ? esc_html__( 'All Departments', 'techmarket' ) : esc_html__( 'Categories', 'techmarket' );
$departments_menu_title = apply_filters( 'techmarket_departments_menu_title', $departments_menu_title );
$departments_menu_icon = apply_filters( 'techmarket_departments_menu_icon', 'tm tm-departments-thin' );
?>
<button class="btn dropdown-toggle btn-block" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="<?php echo esc_attr( $departments_menu_icon ); ?>"></i><span><?php echo esc_html( $departments_menu_title ); ?></span></button>
<?php
wp_nav_menu( apply_filters( 'techmarket_departments_menu_args', array(
'theme_location' => 'departments-menu',
'container' => false,
'menu_class' => 'dropdown-menu yamm departments-menu-dropdown',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
) ) );
?>
</div><!-- #departments-menu -->
<?php
}
@ibndawood
Copy link
Author

Wa alaikum salam. Please email our support from here : https://themeforest.net/item/techmarket-multidemo-electronics-store-woocommerce-theme/20241155/support for support related to Techmarket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment