Remove the Store View from the Magento Meta Title Tag

November 5th, 2008 Posted in Programming

Having problems with the word ” – English” showing up on all your meta titles? Here’s the solution:

Open the following file:

/app/design/frontend/your_interface/your_theme/template/page/html/head.phtml

Change:

<title><?php echo $this->getTitle() ?></title>

To:

<title><?php echo str_replace(” – English “, “”, $this->getTitle()) ?></title>

Don’t forget to change “English” to the name of your store view, if you’ve changed it!

Also watch out, my blog turns quotes into typographers quotes (slanted ” symbols). You might need replace them.

All credit goes to mischah on the Magento forums.

Post a Comment