Advertisement
firoze

Sticky Usage In Menu

Jul 26th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1.  
  2. <!-- first call this id "sticker" wrapper area -->
  3.  
  4. <!-- use in footer -->
  5. <script src="https://raw.githubusercontent.com/garand/sticky/master/jquery.sticky.js"></script>
  6. <script>
  7. jQuery(document).ready(function () {
  8. // sticky menu
  9. jQuery("#sticker").sticky({topSpacing:0});
  10. });
  11. </script>
  12.  
  13.  
  14. ************************************************************************************************
  15.  
  16. // Example usages
  17. <div id="sticker" class="cssmenu"> // here id="sticker" is sticky id
  18. <div class="container">
  19. <div class="row">
  20. <div class="col-md-12 col-sm-12 col-lg-12">
  21. <div id="" class="">
  22. <?php wp_nav_menu( array(
  23. 'theme_location' => 'bishop_menu',
  24. 'menu_id'=> 'menu',
  25. // 'container'=> 'nav',
  26. // 'menu_id' => 'nav',
  27. 'echo' => true,
  28. ) ); ?>
  29.  
  30.  
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement