Remove Mythemeshop notice in your plugins and templates if you have not entered the license

Hi guys,

In this video tutorial we are going to see how we can remove the annoying banner that appears in the administration area in the templates and plugins of mythemeshop when we are working and we have not entered the license.

If you don't, it's not that it stops working, the templates work correctly without adding the username, the problem is that Every time we move anywhere in the WordPress administrator, this poster appears:

mythemeshop license notice

As I say, it does not interrupt the operation of the template or the plugin but when I reload the page the banner appears, which is very annoying when we are working.

The one in charge of the annoying notice appearing is the “Mythemeshop connect” plugin:

mythemeshop connect plugin

If I deactivate the plugin and go to the template options it is when it does not work correctly, for this reason we have to have it active.

This plugin is in charge of automatic updates when we have the license and if we do not have it, it will notify you that you have to activate it.

What can we do to get rid of that annoying poster?

Well, let's get to it, because thanks to a little trick we can remove it 😉

Here is the video tutorial:

Subscribe to my channel:  

If you are not subscribed to the Premium Zone you can give sign up for €10/month here

We need to do a few steps to achieve it.

The first thing we have to do is install the child template, that is, instead of working with the parent template, we are going to modify the child templates so that the changes are not lost when updating in the future.

Let's Import/Export:

mytheme options child theme

and in the upper right part where it says: “Child theme Generator” I create the child template.

I am going to place child-risen, I give it to create and I accept:

child theme generator

 

We go to Appearance –> Themes, and activate the child template that we have created:

child risen mythemeshop

And now what we have to do is add a file to the folder that has been created called Child-risen, and modify the functions.php.

edit theme

What file do we have to create?

From the FTP, we go to the folder wp-content –> themes

Inside there is a folder called Child-risen.

This is where we are going to insert a file called admin.css that has the following code:

div#mts-connect-modal {
display: none! important;
}

edit admin css file

Once we have it added, we reload, and we can see that the admin.css file already appears inside the editor.

admin css file

div#mts-connect-modal {
    display: none !important;
}

We almost almost have it.

What do I have to do now?

We go to the Functions.php file and tell it to load the css file that we have created.

To do this we add the following code:

edit php functions

// Update CSS within in Admin
function admin_style() {
  wp_enqueue_style('admin-styles', get_stylesheet_directory_uri().'/admin.css');
}
add_action('admin_enqueue_scripts', 'admin_style');

We click Update.

As you will see, the annoying screen no longer appears every time we move through the administration area of ​​our website:

poster does not appear

Now we can navigate without problems, everything is perfect 😉

I hope you liked it, see you in the next video.

Leave a comment