Advertisement
fauzanjeg

JKIT || Hot Fix for Error elementormodules.frontend.handlers

Mar 28th, 2022 (edited)
5,998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. /* Hot Fix for Error elementormodules.frontend.handlers */
  2. if ( class_exists( '\Jeg\Elementor_Kit\Elements\Element' ) ) {
  3.     remove_action( 'elementor/element/after_section_end', array( \Jeg\Elementor_Kit\Elements\Element::instance(), 'enqueue_scripts' ), 10 );
  4.     function add_jkit_sticky_scripts() {
  5.         wp_enqueue_script( 'jkit-sticky-element' );
  6.     }
  7.     add_action( 'wp_enqueue_scripts', 'add_jkit_sticky_scripts', 99 );
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement