Jump to content

Shop included in all page titles


Recommended Posts

I was wondering if anyone could tell me how to delete my shop name in all page titles ? It is added automatically by PS 1.5 and I don't think it is a good idea.

 

override the meta class file. Check the 217 line in this class, in getHomeMetas function. You must change it

public static function getHomeMetas($id_lang, $page_name)
{
 $metas = Meta::getMetaByPage($page_name, $id_lang);
 $ret['meta_title'] = (isset($metas['title']) && $metas['title']) ? $metas['title'].' - '.Configuration::get('PS_SHOP_NAME') : Configuration::get('PS_SHOP_NAME');
 $ret['meta_description'] = (isset($metas['description']) && $metas['description']) ? $metas['description'] : '';
 $ret['meta_keywords'] = (isset($metas['keywords']) && $metas['keywords']) ? $metas['keywords'] :  '';
 return $ret;
}

 

you must also edit other classes in this file where you can find Configuration::get('PS_SHOP_NAME');

Edited by vekia (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...