Hello,
when the drop-down menu is used than the main navigation is hidden.
How can I change it, that the main menu is not hidden?
Thanks for your help!
Hello Wendy.
I have checked our demo site. I do not see the problem that you mentioned. When I use the drop down menu, the main menu is not hidden away.
When I click on the demo page, for example, the “Landing Page” on the drop-down and the “Landing Page” is open. the main navigation is then at the “Landing Page” hidden. There is only the home function and the drop-down menu. I would like to continue to see the main navigation. Thank you for your help.
My apology for this late in replying. To resolve this issue, please follow my instruction here:
1. Open framework.php file in /wp-content/themes/dw-page/inc/framework.php
2. Replace following code – line 303
<?php if( $menu && is_front_page() ){ ?>
with:
<?php if( $menu ){ ?>
3. Replace following code – line 312
<a href="#<?php echo $menu_id ?>">
with:
<?php if ( is_front_page() ): ?>
<a href="#<?php echo $menu_id ?>">
<?php else: ?>
<a href="<?php echo home_url('/#').$menu_id ?>">
<?php endif ?>
4.Replace following code – line 482
add_filter('dw_enable_menu','__return_false');
with:
// add_filter('dw_enable_menu','__return_false');
5. Open script.js in /wp-content/themes/dw-page/inc/assets/js/script.js 6. Replace following code – line 37
e.preventDefault();
with
// e.preventDefault();
7. Replace following code – line 70
history.pushState(null, null, $('.nav-collapse .active a').attr('href'));
with:
setTimeout(function(){
history.pushState(null, null, $('.nav-collapse .active a').attr('href'));
},1000);
Hope this helps!
Please login or Register to submit your answer