Welcome, Guest
Username:
Password:
Remember me
  • Page:
  • 1

[solved] How to remove a metatag (Powered by Visual Composer) from the wordpress

[solved] How to remove a metatag (Powered by Visual Composer) from the wordpress [ 1 year 6 months ago ] #8

Way №1
Go to => your_site/wp-content/plugins/js_composer/include/classes/core/class-vc-base.php
line 658:
public function addMetaData() {
	echo '<meta name="generator" content="Powered by Visual Composer - drag and drop page builder for WordPress."/>' . "\n";
}

We need edit this function and our new code must be:
public function addMetaData() {
	echo '' . "\n";
}

Way №2
Add additional code to the your Themes/function.php
//remove a metatag (Powered by Visual Composer) from the wordpress
add_action('init', 'optimize_fixwp_head', 100);
function optimize_fixwp_head() {
   remove_action('wp_head', array(visual_composer(), 'addMetaData')); 
}

if you need remove Wordpress generator -> add to Theme/function.php this code
remove_action('wp_head', 'wp_generator');

Please Log in to join the conversation.

Alex experienced Freelance Web Developer with a demonstrated history of working in the information technology and services industry. Skilled in User Experience, Joomla, WordPress, User Interface Design, Front-end Development, and IT Service.
Last Edit: by alex.
  • Page:
  • 1