1

My projects default page title fixed. Suppose I go category page that's not show category name in title that showing default title which from core_config_data table path design/head/default_title.

Same things happen for product page and other pages.

how to possible to fixed this. And now I need to this dynamic

4
  • what do you mean by Fixed? Its static?
    – Mujahidh
    Commented Dec 22, 2015 at 9:53
  • Semi static. It's come from core_config_data table where path design/head/default_title. If I change there then My title changed Commented Dec 22, 2015 at 9:55
  • You can add the value for Page Title in the category page from admin panel.
    – Mujahidh
    Commented Dec 22, 2015 at 9:57
  • But other pages? Any page not show any different title. All are fixed Commented Dec 22, 2015 at 10:05

4 Answers 4

2

Make sure in your head.phtml file you have do not have fixed title and it has dynamic value.

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

Check file

app/design/frontend/{your_package}/{your_theme}/template/page/html/head.phtml
1
  • I checked. That's Ok. If I change database value then my title changed. Commented Dec 22, 2015 at 9:53
1

You can Add the Page Title in admin panel category page.

For a common page title you can give a value for title prefix in system->Configuration->General->Design->HTML Head->title prefix

3
  • I need dynamic Page Title but this showing only title prefix Commented Dec 22, 2015 at 10:43
  • Did you add the category page Title? catalog->manage categories ->select a category and give a value to PAGE TITLE
    – Mujahidh
    Commented Dec 22, 2015 at 10:46
  • It's not happen for only category pages. It's happen for all pages. I just give a example like category page. Commented Dec 22, 2015 at 10:51
1

you should use

$currentCategory = Mage::registry("current_category");

//Display the current Category Title
echo $currentCategory->getName();

need to reindex and clear the cache.

Note:- reindex requires.

I hope this will help you.

1

Find file /app/design/frontend/YOURPACKAGE/YOURTEMPLATE/layout/local.xml and find

<reference name="root"> <remove name="breadcrumbs"/> </reference>

If You add this then your Title gone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.