fauzanjeg

Close Burger Menu After Click || Jeg Elementor Kit

Nov 23rd, 2021 (edited)
1,264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. /* Close Burger Menu After Click || Jeg Elementor Kit */
  2. function close_burger_menu_after_click() {
  3.     ?>
  4.     <script>
  5.         (function($) {
  6.             $('.menu-item a[href^=#]').each(function() {
  7.                 $(this).parent().addClass('jkit-close-menu')
  8.             });
  9.         })(jQuery);
  10.     </script>
  11.     <?php
  12. }
  13. add_action( 'wp_footer', 'close_menu_after_click' );
Add Comment
Please, Sign In to add comment