Jump to content

Delete Shop Name


rakeem

Recommended Posts

Hi guys,

 

i am going crazy because i am trying till yesterday to delete the shopname from title on the frontpage. i have tried everything but always getting header errors. i have the german edition 1.3.1

 

here is the code of /classes/tools.php

 

static public function getHomeMetaTags($id_lang)
{
 global $cookie, $page_name;
 /* Metas-tags */
 $metas = Meta::getMetaByPage($page_name, $id_lang);
 $ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? $metas['title'].' - '.Configuration::get('PS_SHOP_NAME') : Configuration::get('PS_SHOP_NAME');
 $ret['meta_description'] = (isset($metas['description']) AND $metas['description']) ? $metas['description'] : '';
 $ret['meta_keywords'] = (isset($metas['keywords']) AND $metas['keywords']) ? $metas['keywords'] :  '';
 return $ret;
}

static public function completeMetaTags($metaTags, $defaultValue)
{
 global $cookie;
 if ($metaTags['meta_title'] == NULL)
  $metaTags['meta_title'] = $defaultValue.' - '.Configuration::get('PS_SHOP_NAME');
 if ($metaTags['meta_description'] == NULL)
  $metaTags['meta_description'] = Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) ? Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) : '';
 if ($metaTags['meta_keywords'] == NULL)
  $metaTags['meta_keywords'] = Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) ? Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) : '';
 return $metaTags;
}

 

the german forum is almost dead. no reply. i will appreciate it if somebody could help.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...