salmancreation

ie 9 style responsive.j enqueue

Nov 27th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. A few things need to happen in order to make responsive-nav.js work in the
  2. Millennium Flights theme. First, you’ll need to enqueue the script (after down
  3. -
  4. loading the files). Since there is already a function to do that in the
  5. theme, you can
  6. just add a new line to it:
  7. function mf_scripts() {
  8. wp_enqueue_style( ‘googlewebfonts’,
  9. p
  10. ‘http://fonts.googleapis.com/css?family=
  11. p
  12. Open+Sans+Condensed:300’ );
  13. wp_enqueue_script( ‘responsivenav’,
  14. p
  15. TEMPPATH.’/js/responsive-nav.min.js’, array());
  16. echo ‘<!--[if lt IE 9]>’;
  17. echo ‘<script src=”http://html5shim.googlecode.com/
  18. p
  19. svn/trunk/html5.js”></script>’;
  20. echo ‘<script src=”’. TEMPPATH .’/js/respond.min.js”>
  21. p
  22. </script>’;
  23. echo ‘![endif]-->’;
Advertisement
Add Comment
Please, Sign In to add comment