Magento CMS pages Meta Tags Control

app\code\core\Mage\Page\Block\Html\Head.php
 
public function toHtml()
{
//Start Edit
$_cmsTitle = Mage::getSingleton('cms/page')->getTitle();
if (strlen($_cmsTitle)>0){
$this->addText('<title>'.$_cmsTitle.'</title>'."\n\t");
}else{
$this->addText('<title>'.$this->getTitle().'</title>'."\n\t");
}
//End Edit
$this->addText('<meta http-equiv="Content-Type" content="'.$this->getContentType().'"/>'."\n\t");
$this->addText('<meta name="description" content="'.$this->getDescription().'"/>'."\n\t");
$this->addText('<meta name="keywords" content="'.$this->getKeywords().'"/>'."\n\t");
$this->addText('<meta name="robots" content="'.$this->getRobots().'"/>'."\n");
$this->addText($this->getAdditionalCssJs());
$this->addText($this->getChildHtml());
 
return parent::toHtml();
}

One response to “Magento CMS pages Meta Tags Control”

  1. circus acts

    honestly I genuinely as with your current publish maintain up the word I will probable pop in a lot of countless other juncture to start recital a few a lot more belief an ton.

Leave a Reply