What's the best way to add some text (e.g. [staging], [dev], ...) to the end of the header title on all pages? I'm thinking of some "layout" event to listen to where I can:

$observer->getLayout()->getBlock('head')->setTitle($originalTitle . ' [staging]');

But which one?

2 Answers 2


To add suffix to your store title tags go to System > Configuration > Design > Html Head.Here you can see "Title Suffix" you can give your title suffix here. Which will add your given suffix on all pages on website after your title.


core_block_abstract_to_html_after should work - see this answer for more details.

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.