After the board, KAGG Design did the following.
- Found the code that is responsible for the output of this biliberdy.
- Changed the code in the child theme so that when the theme is updated, the code does not change.
So, I tell in order.
We download the whole topic (original, not a child to the local computer). I have a program Sublime Text (free). With it, open the folder with the theme:

When we have a project open, press the key combination ctrl + shift + f to search for text in the entire project. Previously, I did not know this and went through all the files, and it took a lot of time.
The system finds the location of lines.

Now we see where the lines are and in which file.
I found out that this is a separate function that needs to be overridden. Of course, we can delete, but when you update the topic, everything will return to its place.
Here is my function along with the hook:
add_action( 'admin_notices', 'guardian_activation_notice' ); function guardian_activation_notice(){ //wp_register_style( 'custom_admin_css', get_template_directory_uri() . '/core/admin/admin-banner.css'); wp_enqueue_style( 'custom_admin_css' ); wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome-4.7.0/css/font-awesome.css'); wp_enqueue_style('admin', get_template_directory_uri() .'/core/admin/admin-themes.css'); ?> <div class="notice notice-success is-dismissible"> <p class="notice-text"><?php $theme_info = wp_get_theme(); printf( esc_html__('Thank you for installing %1$s - Version %2$s, ', 'guardian'), esc_html( $theme_info->Name ), esc_html( $theme_info->Version ) ); echo esc_html__( 'For More info about Premium Products & offers, Do visit our welcome page.', 'guardian' ); ?></p> <p class="notic-gif"><a class="pro" target="_self" href="<?php echo admin_url('/themes.php?page=guardian') ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/theme-gif02.gif"></a></p> </div> <?php } ?>
I redefined the function in this way.
- Unlinked the function from the hook by creating a new function.
- I hung up an alternative function on the new hook, in which I deleted the whole div, which disturbed me.
Here is the code in the child thread.
//Переопределяем родительскую функцию function remove_guardian_activation_notice(){ remove_action( 'admin_notices', 'guardian_activation_notice' ); } add_action( 'admin_notices', 'remove_guardian_activation_notice', 0 ); add_action( 'admin_notices', 'guardian_activation_notice_alternate' ); function guardian_activation_notice_alternate(){ //wp_register_style( 'custom_admin_css', get_template_directory_uri() . '/core/admin/admin-banner.css'); wp_enqueue_style( 'custom_admin_css' ); wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome-4.7.0/css/font-awesome.css'); wp_enqueue_style('admin', get_template_directory_uri() .'/core/admin/admin-themes.css'); } ?>
That's how I did it.
Since I do not fully understand the topic of hooks in WordPress, then if someone can explain what could be shortened in the code to make it more understandable, it would be good.