page.php:
header.php:
&
Every Simple just using a function , I created it .
function change_meta_tags($title,$description,$keywords){
// This function made by Jamil Hammash
$output = ob_get_contents();
if ( ob_get_length() > 0) { ob_end_clean(); }
$patterns = array("/(.*?)<\/title>/","","");
$replacements = array("$title ","meta name='description' content='$description'","meta name='keywords' content='$keywords'");
$output = preg_replace($patterns, $replacements,$output);
echo $output;
}
?>
First of all you must create function.php file and put this function inside ,then make require under the MetaTags in Header.php . To use this function change_meta_tags("NEW TITLE","NEW DESCRIPTION",NEW KEYWORDS); . Don't use this function in Header.php !! just with another pages .