0

I'm working on a magento website and would like to move all titles to another place(See images for an example).

Right now it looks like this

https://puu.sh/x2bGu/4d47221c65.jpg

It must look like this

https://puu.sh/x2buz/36bf62ecf5.jpg

It's need to be done for the following templates. (1column and 2columns-left templates)

How can i place the magento titles to a new block??

closed as too broad by Siarhey Uchukhlebau, Prince Patel, Qaisar Satti, brentwpeterson, Marius Aug 29 '17 at 7:44

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Your Magento version ? – PЯINCƏ Aug 5 '17 at 22:51
  • Magento ver. 1.9.3.0 – Melvinp Aug 6 '17 at 7:22
1

If I am not wrong it can be achieved with using magento vars, more specifically the PHP logic that echoes out the page title:

It would be something like:

$this->getLayout()->getBlock('head')->getTitle();

or

<?php echo str_replace(Mage::getStoreConfig('design/head/title_prefix'), '', $this->getLayout()->getBlock('head')->getTitle()); ?>

Then use the following code in our template file. eg

app/design/frontend/base/default/template/page/html/head.phtml
  • Sadly it isn't working for all pages. For sub pages like: (category page, subcategory page, product page, etc) it shows the entire path eg: Home -> main category -> Sub category i only need the last part of the title (sub category title) – Melvinp Aug 6 '17 at 19:31

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