update Jetpack dependency script
-
Hi,
The Jetpack dependency script the theme is using, is not up to date.
The current version of the script includes a
js
file that allows the user to dismiss the notice that Jetpack needs to be installed. Clicking the dismiss link on the notice now, does make the notice go away, but the dismissal is not “remembered”, so on page refresh the irritating notice is back.It would actually be a lot nicer to suggest Jetpack IF the user wants to add Testimonials, because running Jetpack just for the custom content module seems far-fetched, but that is a topic for a different discussion I guess.
And for people that cannot or don’t want to wait until the theme has the updated version of the dependency script, here is the code snippet that needs to be added to the
functions.php
file of the child theme to make the notice disappear for real ??/** * Remove the Jetpack Dependency script from a parent theme * Some theme authors forget to include the plugin-enhancements.js file * Without it the notice that the theme depends on Jetpack cannot be dismissed * * Change "TEXTDOMAIN" on line 18 to the name of the parent theme. * Best to check the name in the plugin-enhancements.php file of the parent theme (usually the first line of the class) * * @source: //wpti.ps/?p=663 */ add_action( 'admin_head', 'bhi_remove_jetpack_dependency', 9 ); function bhi_remove_jetpack_dependency() { // Changed "TEXTDOMAIN" to "Pique". remove_action( 'admin_head', array( 'Pique_Theme_Plugin_Enhancements', 'init' ) ); }
- The topic ‘update Jetpack dependency script’ is closed to new replies.