amylong7
asked 9 years ago

I’d like for the menu to appear on this page: http://www.twoshepsthatpass.com/wordpress/previous-clients, but because it doesn’t belong on the "one page" it doesn’t populate the menu on top. How do I get the menu to come up on the non-parent pages?

Thanks!

3 Answers
DominicStaff
answered 9 years ago

To resolve this issue, please follow my instruction here:

  • Open framework.php file in /wp-content/themes/dw-page/inc/framework.php
  • Replace following code – line 303
    <?php if( $menu && is_front_page() ){ ?>

With: <?php if( $menu ){ ?>

  • 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 ?>
  • Replace following code – line 482
    add_filter('dw_enable_menu','__return_false');

with:
// add_filter('dw_enable_menu','__return_false');

  1. 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();

  • 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!

amylong7
replied 9 years ago

This is great! Thank you. It worked but now the menu doesn’t have any function. Meaning when you click it doesn’t go back to the one-page….

amylong7
replied 9 years ago

This is great! Thank you. It worked but now the menu doesn’t have any function. Meaning when you click it doesn’t go back to the one-page….

amylong7
replied 9 years ago

It’s working today!!

amylong7
answered 9 years ago

While this works great for the desktop version, it looks like there is a hamburger missing from the mobile version of this page. Is there code we can add to include the menu on the mobile page?

Thanks!

DominicStaff
answered 9 years ago

I have helped you resolve this issue, you can check your site now.
Regards,

Powered by DW Question & Answer Pro