Created
September 25, 2018 17:35
-
-
Save ibndawood/614cebe1737932291f7845763a442666 to your computer and use it in GitHub Desktop.
Techmarket - Departments menu open by default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
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
Assalam O alaikum IbnDawood,
How can I make the above code, to show Dept menu on Home Page only., as on Product page Dept Menu overlaps the Main product image and it needs to click to hide the Dept. Menu list.