Envira Gallery won't clear license notice after update

“No valid license key has been entered, so automatic updates for Envira Gallery have been turned off. Please click here to enter your license key and begin receiving automatic updates.”

Is stuck at the top of every admin page with no way to clear!
I have updated to latest versions of both x-theme (5.2.4 at this time) and have this message. Updated envira gallery, same result. Removed envira and reinstalled from x settings, same.

Saw a support thread that says it’s not ideal to enter the key in any case, so I shouldn’t buy it…

How can I clear this message? It’s making me a little crazy.

S

Hi There,

To remove that message, please add the following code to functions.php file locates in your child theme:

add_action('admin_head', 'print_admin_script');
function print_admin_script(){
	?>
	<script type="text/javascript">
		jQuery(document).ready(function($) {
			$('a[href*="envira-gallery-settings"]').parent().parent('.error').remove();
		});
	</script>
	<?php
}

Hope it helps :slight_smile:

2 Likes

Thanks for this solution. It also solved 2 other plugins always showing they needed to be updated but no license!

Hi @WiredNomads,

Happy to hear that. Thanks for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.