Smilla71 Posted November 7, 2012 Share Posted November 7, 2012 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. Link to comment Share on other sites More sharing options...
vekia Posted November 7, 2012 Share Posted November 7, 2012 (edited) 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 November 7, 2012 by vekia (see edit history) Link to comment Share on other sites More sharing options...
Smilla71 Posted November 7, 2012 Author Share Posted November 7, 2012 Thanks for your reply ! Could you please tell me exactly how I should change it ? Which part I have to delete or can I just comment it out ? Link to comment Share on other sites More sharing options...
Recommended Posts