Magento change title, meta description & keywords

Go on your Block class and do :

    public function _prepareLayout() {
        $head = $this->getLayout()->getBlock('head');
        $head->setTitle("Your Title");
        $head->setKeywords("keyword1, keyword2, keyword3");
        $head->setDescription("Your meta description");
        return parent::_prepareLayout();
    }

Leave a Reply