WP custom title
It is just simple code. First you need to create a folder "custom_title_one" under "plugin" folder then Create new file call custom_title_one.php and save it.
Top of the file you need to be initialize the plugin name description etc...
<?php
/*
Plugin Name: Custom title one
Plugin URI:
Description: Custom title one
Version: 1.0
Author: WAP
*/
?>
Then you need to add WP filters as follows.
add_filter('wpseo_title','custom_title_one');
function custom_title_one(){
return "test title";
}Go to WP admin
Activate custom_title_one plugin then see your site title
No comments:
Post a Comment