• I have a network with Genesis Simple Sidebars Network Activated. On sites that have other themes active, I get a non dismissible notification Genesis Simple Sidebars requires WordPress 4.7.2 and Genesis 2.4.2, or greater. Please install and activate the latest version of Genesis to use this plugin. Is there a a way to turn that off without Network Deactivating and turning it on individually?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nick C

    (@modernnerd)

    If you can network deactivate the plugin and only activate it on the Genesis sites individually, that would be a good approach (it will prevent the plugin logic from running at all if Genesis isn’t active).

    Otherwise, you could try creating a new plugin folder named ‘genesis-remove-sidebar-nag’ containing a single file named ‘plugin.php’ with the content below. Network-activating that plugin should remove the notification on all sites.

    <?php
    /**
     * Plugin Name: Genesis Simple Sidebars Remove Nag
     * Plugin URI: https://www.ads-software.com/support/topic/dismiss-requirement-message/
     * Description: Removes the activation nag for Simple Sidebars.
     *
     * Version: 0.1.0
     * License: GPLv2+
     * License URI: https://www.opensource.org/licenses/gpl-license.php
     *
     * @package genesis_remove_sidebar_nag
     */
    
    add_action( 'plugins_loaded', 'genesis_simple_sidebars_remove_nag', 11 );
    /**
     * Remove the notice that Genesis Simple Sidebars displays if Genesis is not active.
     *
     * @return void
     */
    function genesis_simple_sidebars_remove_nag() {
    	if ( ! function_exists( 'Genesis_Simple_Sidebars' ) ) {
    		return;
    	}
    	remove_action( 'admin_notices', array( Genesis_Simple_Sidebars(), 'requirements_notice' ) );
    }
    
    Thread Starter scamartist26

    (@scamartist26)

    Thank you for the solution. I tried the remove action and did not realize I needed the CLASS done that way. This works very well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dismiss requirement message’ is closed to new replies.