dodyw / indexu7

Indexu 7 issue tracking
http://www.nicecoder.com
2 stars 1 forks source link

Title MetaTag #33

Open Jarievilo opened 13 years ago

Jarievilo commented 13 years ago

We may have the option to change how the title meta tag is built. Now in detail page you have <?php print html_head("title"); ?> This function will write "$category_name + Title Name of the link" . I want to delete the category_name form the title metatags. how to do that?

dodyw commented 13 years ago

There is two methods:

1) Admin panel > Pages > detail page [edit]. In 'title' field, put value {title}

2) Edit d.php, see this section:

  // html head

  if ($page['page_title']) {
    $lep->head['title'] = str_replace('{title}',$res['title'],$page['page_title']);
  }
  else {
     $lep->head['title'] = $cat_path . ' / ' . $res["title"];
  }

Remove the $cat_path