fauzanjeg

JKIT || Prevent Anchor Click for JKit Accordion widget with Kadence Theme

Apr 17th, 2022 (edited)
1,751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. /** Prevent Anchor Click for JKit Accordion widget with Kadence Theme */
  2. function prevent_anchor_click_for_jkit_accordion_widget_with_kadence_theme() {
  3.     ?>
  4.     <script>
  5.         (function ($) {
  6.             var $wrapper = $('.jeg-elementor-kit.jkit-accordion');
  7.             $wrapper.find('.card-wrapper .card-header .card-header-button').each(function () {
  8.                 $(this).addClass('scroll-ignore');
  9.             });
  10.         })(jQuery);
  11.     </script>
  12.     <?php
  13. }
  14. add_action( 'wp_footer', 'prevent_anchor_click_for_jkit_accordion_widget_with_kadence_theme' );
Add Comment
Please, Sign In to add comment