ClipboardJS is not defined
-
Hello
Version 3.3.46
I have an error: ClipboardJS is not defined
Could you please help me to fix it?
Thanks
-
Hi,
We are not able to reproduce this scenario in our test environment. If you post the URL of the web page where you are facing this issue, I would be able to check what’s wrong.
Is there any other plugin that you have activated which is using the Clipboard JS? If yes, try deactivating that plugin and see if this makes any difference. If not, try keeping only Sassy Social Share active and check if this helps. If it does, you can activate back the other plugins one-by-one to detect the one causing the conflict. Once you know which plugin is conflicting we can work on the resolution.
Let me know how it goes.Hello @heateor
Thank you a lot for your support
Seems this issue is because of the plugin Morph, by Bonfire. Link https://codecanyon.net/item/morph-flyout-mobile-menu-for-wordpress/10685700
This is a commercial plugin, but I can send you the source if it helped
I don’t see ClipboardJS in Morph plugin. Probably the problem is in some js conflict
// // ENQUEUE morph-accordion.js // function bonfire_morph_accordion() { if( get_theme_mod('bonfire_morph_sub_menu_activation') != '') { wp_register_script( 'bonfire-morph-accordion-full-link', plugins_url( '/js/morph-accordion-full-link.js', __FILE__ ) . '', array( 'jquery' ), '1' ); wp_enqueue_script( 'bonfire-morph-accordion-full-link' ); } else { wp_register_script( 'bonfire-morph-accordion', plugins_url( '/js/morph-accordion.js', __FILE__ ) . '', array( 'jquery' ), '1' ); wp_enqueue_script( 'bonfire-morph-accordion' ); } } add_action( 'wp_enqueue_scripts', 'bonfire_morph_accordion' ); // // ENQUEUE morph.js // function bonfire_morph_js() { wp_register_script( 'bonfire-morph-js', plugins_url( '/js/morph.js', __FILE__ ) . '', array( 'jquery' ), '1', true ); wp_enqueue_script( 'bonfire-morph-js' ); } add_action( 'wp_enqueue_scripts', 'bonfire_morph_js' ); // // ENQUEUE morph-visible-on-load.js // function bonfire_morph_visible_on_load_js() { if( get_theme_mod('bonfire_morph_visible_on_load') != '') { wp_register_script( 'morph-visible-on-load', plugins_url( '/js/morph-visible-on-load.js', __FILE__ ) . '', array( 'jquery' ), '1', true ); wp_enqueue_script( 'morph-visible-on-load' ); } } add_action( 'wp_enqueue_scripts', 'bonfire_morph_visible_on_load_js' ); // // ENQUEUE search.js // function bonfire_morph_search_js() { wp_register_script( 'bonfire-morph-search-js', plugins_url( '/js/search.js', __FILE__ ) . '', array( 'jquery' ), '1', true ); wp_enqueue_script( 'bonfire-morph-search-js' ); } add_action( 'wp_enqueue_scripts', 'bonfire_morph_search_js' ); // // ENQUEUE retina.min.js // if(get_theme_mod('morph_no_retina') == '') { function bonfire_morph_retina_js() { wp_register_script( 'bonfire-morph-retina-js', plugins_url( '/js/retina.min.js', __FILE__ ) . '', array( 'jquery' ), '1', true ); wp_enqueue_script( 'bonfire-morph-retina-js' ); } add_action( 'wp_enqueue_scripts', 'bonfire_morph_retina_js' ); } // // ENQUEUE jquery.scrollbar.min.js (except on touch devices) // if(get_theme_mod('morph_no_scrollbar') == '') { function bonfire_morph_scrollbar_js() { if ( wp_is_mobile() ) { } else { wp_register_script( 'bonfire-morph-scrollbar-js', plugins_url( '/js/jquery.scrollbar.min.js', __FILE__ ) . '', array( 'jquery' ), '1', true ); wp_enqueue_script( 'bonfire-morph-scrollbar-js' ); } } add_action( 'wp_enqueue_scripts', 'bonfire_morph_scrollbar_js' ); } // // ENQUEUE Google WebFonts // function morph_fonts_url() { $font_url = ''; if ( 'off' !== _x( 'on', 'Google font: on or off', 'morph' ) ) { $font_url = add_query_arg( 'family', urlencode( 'Roboto:400,500' ), "https://fonts.googleapis.com/css" ); } return $font_url; } function morph_scripts() { wp_enqueue_style( 'morph-fonts', morph_fonts_url(), array(), '1.0.0' ); } add_action( 'wp_enqueue_scripts', 'morph_scripts' );
You’re welcome. Would you shoot an email to support[at]heateor[dot]com regarding the same for further assistance?
@heateor sure, thanks
- The topic ‘ClipboardJS is not defined’ is closed to new replies.