Remove 'powered by visual composer' meta tag

Posted in: Newspaper
Post count: 9544

Hi, folks
what is the best way to remove this generator tag; we don’t like to advertise to hackers what tech we’re using on our site(s):
<meta name="generator" content="Powered by Visual Composer - drag and drop page builder for WordPress."/>

The usual “remove” stuff I put in functions.php doesn’t seem to work on that.

Thanks 🙂

Post count: 159

put the following code in your functions.php:

add_action('init', 'myoverride', 100);
function myoverride() {
    remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
Post count: 9544

@mbasche
thanks so much. Worked perfectly. For some reason my fragile little mind couldn’t work out the syntax on that, even though I have various other things removed/blocked/optimized in my functions.php file, as per usual. 🙂

I think I had been putting in visual-composer vs visual_composer, which is ultra dumb on my part. Doh.

THANK YOU!!! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.