Like me, are you sick of seeing: “Hola! Please activate your copy of Visual Composer to receive automatic updates”
Every single time you log in to WordPress? Even though you’ve bought a premium theme with visual composer plugin bundled with it, or perhaps you are using WordPress in a test/development environment and it’s annoying yourself or a client.
Well, have no fear! Use this bit of code in your functions file to use css to hide it forever!
// evince.uk visual composer activation nag remover function admin_css() { echo '<style type="text/css"> #vc_license-activation-notice {display:none !important;} </style>'; } add_action('admin_head', 'admin_css');
Tip, if you don’t want to edit your functions file for any reason or aren’t using a child theme then use the WordPress “functionality” plugin to have an additional functions file accessible from the backend so that the tweak isn’t overwritten when you update the theme.
Nice one work!
Did not work and caused 500 error
It may have caused a confliction with other elements within your functions.php file.
It’s sometimes sensible to use the Functionality Plugin on wordpress and drop it in there.
I assure you this code works I have running on lots of sites.
Because it misses of a semicolon at the end of the code. But it’s the only one that works! Thanks!
Cheers, I missed that, I’ve corrected the above code.
awesome!
thanks work for me
Thank you so much. It works perfectly!
One missing info from the article was where the functions.php file was located:
html/wp-content/themes/theme_name/functions.php
It should also be noted that added the code snippet at the top of the file resulted in the banner being hidden, but “// evince.uk visual composer activation nag remover function admin_css() { echo ”; } add_action(‘admin_head’, ‘admin_css’); ” shown, while adding it to the bottom of the file gave the desired results.