Advertisement
delvinkrasniqi

Untitled

Dec 9th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <section class="divtop">
  2. <div class="welcome" style="background-image: url(<?php the_field('section1_background'); ?>)">
  3. <div class="navbar-gradient fixed-top">
  4.  
  5.  
  6. <nav class="navbar navbar-expand-lg navbar-light">
  7. <div class="container">
  8. <?php
  9. $custom_logo_id = get_theme_mod('custom_logo');
  10. $image = wp_get_attachment_image_src($custom_logo_id, 'full');
  11. ?>
  12.  
  13. <a class="navbar-brand" href="<?php echo esc_url(home_url('/')); ?>">
  14. <img src="<?= $image[0]; ?>" class="img-fluid" alt="">
  15. </a>
  16. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
  17. <span class="navbar-toggler-icon"></span>
  18. </button>
  19.  
  20. <!-- The WordPress Primary Menu -->
  21. <?php wp_nav_menu(
  22. array(
  23. 'theme_location' => 'primary',
  24. 'menu_class' => 'navbar-nav ml-auto w-100 justify-content-end',
  25. 'container_class' => 'collapse navbar-collapse',
  26. 'container_id' => 'navbarNav',
  27. )
  28. ); ?>
  29. </div>
  30. </nav>
  31.  
  32. </div>
  33.  
  34.  
  35. </div>
  36. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement