• Resolved Treebeard

    (@malawimama)


    There’s a message that keeps appearing in the admin even though I keep closing it, saying to use a Child theme for customization. I have searched the settings and I don’t see a way to deactivate that message, it’s unnecessary and annoying, how can I turn this off?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Yurii

    (@yuriinalivaiko)

    Hello @malawimama

    Just click the “Close” button in the top-right corner of the notice to hide it. See image 1 and image 2.

    You can use a code snippet to hide this notice permanently.

    // Hide the child theme notice.
    add_action( 'admin_init', function() {
    	if ( function_exists( 'UM' ) ) {
    		UM()->admin()->notices()->remove_notice( 'um_is_not_child_theme' );
    	}
    }, 20 );

    Regards

    Thread Starter Treebeard

    (@malawimama)

    Yes I’ve done that several times before posting a message 😉

    And thanks I’ll try the code

    • This reply was modified 2 years, 9 months ago by Treebeard.
    Plugin Support Yurii

    (@yuriinalivaiko)

    Try to clear server caches and vitrify the site for PHP errors if a notice closing feature does not work. Maybe an option that stores a list of closed notices is cached. Or maybe a notice can not be added to the list of closed notices due to an error.
    Did the code help you hide the notice on your site?
    Regards

    Thread Starter Treebeard

    (@malawimama)

    @yuriinalivaiko thanks the code worked

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Turn off message about using a child theme’ is closed to new replies.