I would like to retrieve a specific page name in my frontend phtml on magento v1.9.2.4. I have found many ways to retrieve 'current' page title, such as thoses questions posted on stackoverflow :

but this is not what I want. I need to show this title in a 'call-to-action' fashion which will be used elsewhere on the website.

EDIT 2017-01-04 - I found a solution, please view my post below

  • If it can help anyone : I found a solution below, it works anywhere on the frontend. – Dynomite Jan 9 '17 at 13:26

I found a solution with the identifier there is the easiest way to do it:

<?php echo Mage::getModel('cms/page')->load('PAGEIDENTIFIERHERE', 'identifier')->getTitle(); ?>
| improve this answer | |
  • thank you @Dynomite, For me i am using following function to get current cms page title <?php echo Mage::getSingleton('cms/page')->getTitle(); ?> – Alam Zaib Oct 6 '18 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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