header.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <?php wp_head(); ?>
  8. </head>
  9. <body <?php body_class(); ?>>
  10. <div id="top">
  11. <div class="container top-navbar">
  12. <div class="d-flex justify-content-sm-center justify-content-md-end">
  13. <nav class="navbar navbar-expand navbar-dark text-muted p-0">
  14. <?php
  15. wp_nav_menu( array(
  16. 'theme_location' => 'top',
  17. 'menu_id' => 'top-nav',
  18. 'menu_class' => 'navbar-nav text-center',
  19. 'container' => false,
  20. 'depth' => 0,
  21. 'fallback_cb' => false,
  22. 'walker' => new WP_Bootstrap_Navwalker()
  23. ));
  24. ?>
  25. </nav>
  26. </div>
  27. </div>
  28. </div>
  29. <header id="masthead" class="masthead site-header sticky-top" role="banner">
  30. <div class="container">
  31. <nav class="navbar navbar-expand-xl navbar-dark">
  32. <button class="navbar-toggler m-0" type="button" data-bs-toggle="collapse" data-bs-target=".navbars-collapse" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
  33. <span class="navbar-toggler-icon"></span>
  34. </button>
  35. <div class="navbar-brand mx-auto">
  36. <a class="site-title" href="<?php echo esc_url( home_url( '/' )); ?>">Hospice &amp; Palliative <span><img src="<?php echo get_template_directory_uri(); ?>/img/dove-white.png"/></span> Care &nbsp;<small>of the Peidmont</small></a>
  37. </div>
  38. <?php wp_nav_menu(array(
  39. 'theme_location' => 'primary',
  40. 'container' => 'div',
  41. 'container_id' => 'navbar',
  42. 'container_class' => 'collapse navbar-collapse navbars-collapse justify-content-end',
  43. 'menu_id' => false,
  44. 'menu_class' => 'navbar-nav',
  45. 'depth' => 3,
  46. 'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
  47. 'walker' => new WP_Bootstrap_Navwalker()
  48. )); ?>
  49. </nav>
  50. </div>
  51. </header>